Instance Property

terminationHandler

Invoked when the task is completed.

Declaration

var terminationHandler: ((Process) -> Void)? { get set }

Discussion

The completion block is invoked when the task has completed. The task object is passed to the block to allow access to the task parameters, for example to determine if the task completed successfully.

This block is not guaranteed to be fully executed prior to waitUntilExit() returning.