parallel\Future::cancel

(0.9.0)

parallel\Future::cancelCancellation

Descrierea

public parallel\Future::cancel ( ) : bool

Shall try to cancel the task

Notă:

If task is running, it will be interrupted.

Avertizare

Internal function calls in progress cannot be interrupted.

Exceptions

Avertizare

Shall throw parallel\Future\Error\Killed if parallel\Runtime executing task was killed.

Avertizare

Shall throw parallel\Future\Error\Cancelled if task was already cancelled.