Skip to content

1.1.0

Choose a tag to compare

@trowski trowski released this 30 Dec 19:35
ccf285b
  • Added Worker\CallableTask and Worker\enqueueCallable() function to execute serializable callables in a worker without defining a class implementing Task.
  • The promise returned from Context\Process::start() now resolves to the process PID instead of null.
  • Workers are now gracefully shutdown when a process exits (#68). Note that using CTRL-C immediately ends the PHP process, so workers are immediately killed. To gracefully shutdown workers or worker pools, a signal handler must be defined for SIGINT/SIGTERM to allow the PHP process to continue execution (even if that handler ends the process by stopping the event loop).