G
Guest
hey all
i have the following code:
private string Test()
{
....
for (int i=0; i<=j; i++)
{
return DoSomething(i);
}
....
}
private string DoSomething(int i)
{
....stuff here takes awhile to process using processinfo (cmd.exe)...
}
what i want to do is do run DoSomething for each i without having to wait
for the previous i to complete.
so for (int i=0; i<=j; i++) { return
SomethingWithoutWaitingForThisToComplete(i); }
how do i do that?
i have the following code:
private string Test()
{
....
for (int i=0; i<=j; i++)
{
return DoSomething(i);
}
....
}
private string DoSomething(int i)
{
....stuff here takes awhile to process using processinfo (cmd.exe)...
}
what i want to do is do run DoSomething for each i without having to wait
for the previous i to complete.
so for (int i=0; i<=j; i++) { return
SomethingWithoutWaitingForThisToComplete(i); }
how do i do that?