PHP - Manual: parallel\Future::cancel
2024-12-22
(0.9.0)
parallel\Future::cancel — Cancellation
Shall try to cancel the task
注意:
If task is running, it will be interrupted.
Internal function calls in progress cannot be interrupted.
Shall throw parallel\Future\Error\Killed if parallel\Runtime executing task was killed.
Shall throw parallel\Future\Error\Cancelled if task was already cancelled.
官方地址:https://www.php.net/manual/en/parallel-future.cancel.php