略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: parallel\Future::cancel

2025-02-27

parallel\Future::cancel

(0.9.0)

parallel\Future::cancelCancellation

说明

public parallel\Future::cancel(): bool

Shall try to cancel the task

注意:

If task is running, it will be interrupted.

警告

Internal function calls in progress cannot be interrupted.

Exceptions

警告

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

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3