Instance Property


Invoked when the task is completed.


@property(copy, nonnull) void (^terminationHandler)(NSTask *);


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.