-
Notifications
You must be signed in to change notification settings - Fork 25
Waiting, Terminating, And Killing
Sid Roberts edited this page Jan 25, 2023
·
1 revision
By default all background processes register a shutdown function that forces the PHP script to wait for job to complete before shutting down.
You can call ->wait()
on a Process
instance if you need to wait until it has finished.
You can also use ->terminate()
and ->kill()
on a Process to send terminate and kill signals.
->wait()
, ->terminate()
, and ->kill()
are also available on the Manager instance and will wait for, terminate, or kill every
process.
Licensed under the MIT License. © Sid Roberts