php8.5
Home/ Manual/ parallel / runtime/ parallel\Runtime::kill

parallel\Runtime::kill

PHP function Edit on GitHub ✎

(0.8.0)

Runtime Join

Description

parallel\Runtime::kill(): void

Shall attempt to force the runtime to shutdown.

Note

Tasks scheduled for execution will not be executed, the currently running task shall be interrupted.

Warning

Internal function calls in progress cannot be interrupted.

Exceptions

Warning

Shall throw parallel\Runtime\Error\Closed if Runtime was closed.

Source: reference/parallel/parallel/runtime/kill.xml · from the official PHP manual (php/doc-en)