I’m sure someone knows this and I will be very thankful for the answer. I don’t know much about delegates and asynch and the like – so please give me a general example of how I could implement.
I have a workflow where
I can use Parallel.Foreach to execute a method for many different files at the same time (sweet, grind that processor) –
however after that method ends I need to run another method (it generates a report on the previous process),
and this second method cannot be run in parallel.
I don’t want to wait for all the files in the Parallel.ForEach to finish before generating reports (that’s not necessary). But if I start the report generation method as the first method ends then I run into problems. Is there some kind of queue or something? There’s gotta be some pretty way of doing it, right?
Thanks
I think what Jim G means is: