I have a long-running Task that I've implemented using the Task Parallel Library. When the Task starts, I grab snapshots of several input values and collections then perform various operations using that information. If any of those values or collections change while the Task is running, I'd like to have the Task run again immediately upon completion. Should I be creating a new Task or is there a way to reuse the existing Task? What's the best way to start the second iteration?
See Question&Answers more detail:os