Checking for task completion

Top  Previous  Next

To check to see if a task has completed check the SshTask.IsComplete property.

 

 

Example

 

[C#]

 

// wait until last task is complete

while(!task2.IsComplete) {

 Thread.Sleep(100);

}

 

 

[VB]

 

' wait until last task is complete

While Not task2.IsComplete

Thread.Sleep(100)

End While