Contents

waitUntilExit()

Blocks the process until the receiver is finished.

Declaration

func waitUntilExit()

Discussion

This method first checks to see if the receiver is still running using isRunning. Then it polls the current run loop using NSDefaultRunLoopMode until the task completes.

waitUntilExit() does not guarantee that the terminationHandler block has been fully executed before waitUntilExit() returns.

See Also

Related Documentation

Running and Stopping