System > System Assembly Interfaces > ITask > ITask.Wait
Wait;
Wait();
The Wait method pauses the current application until the task is completed.
See also:
ITask