Have some method, which is called sync like:
tasks.ForEach(p=> Proccess(p));
void Proccess(){
//do some long running work
}
How can i do something like, on pseudocode:
tasks.ForEach(p=> Async(Proccess(p));
WaitForAny();
Here i want to call tasks async, and wait for any execution end.(not for all).
Can u plz help me, without parallel tasks from .net 4.
Take a look at
Task.WaitAnyhttp://msdn.microsoft.com/en-us/library/dd270672.aspx