编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « parallel\Future
  • parallel\Future::cancelled »
  • PHP Manual
  • parallel\Future
  • Cancellation

parallel\Future::cancel

(0.9.0)

parallel\Future::cancel — Cancellation

说明

public parallel\Future::cancel ( void ) : bool

Shall try to cancel the task

Note:

If task is running, it will be interrupted.

Warning

Internal function calls in progress cannot be interrupted.

Exceptions

Warning

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

Warning

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

相关文章
php parallel the parallel events classphp parallel the parallel future classphp parallel the parallel runtime classphp eio 函数 set maximum parallel threadsphp eio 函数 set minimum parallel thread numberphp swoole 函数 trigger a one time callback function in the futurephp gearmanclient add a task to be run in parallelphp gearmanclient run a list of tasks in parallelphp mongocollection returns an array of cursors to iterator over a full collection in parallelphp mongopool set the size for future connection poolsphp parallel events pollingphp parallel events targetsphp parallel events behaviourphp parallel events inputphp parallel events behaviourphp parallel future cancellationphp parallel future state detectionphp parallel future state detectionphp parallel future resolutionphp parallel 安装/配置
关注编程学问公众号
编程学问网 湘ICP备20001732号