[] (https://github.com/ThrusterIO/process-exit-handler/releases) [] (LICENSE) [] (https://travis-ci.org/ThrusterIO/process-exit-handler) [] (https://scrutinizer-ci.com/g/ThrusterIO/process-exit-handler) [] (https://scrutinizer-ci.com/g/ThrusterIO/process-exit-handler) [] (https://packagist.org/packages/thruster/process-exit-handler)
The Thruster ProcessExitHandler Component. Handles all sub-process exits
Via Composer
$ composer require thruster/process-exit-handler
use Thruster\Component\EventLoop\EventLoop;
use Thruster\Component\ProcessExitHandler\ExitHandler;
use Thruster\Component\ProcessExitHandler\ExitEvent;
$loop = new EventLoop();
$exitHandler = new ExitHandler($loop);
$exitHandler->addHandler(function (ExitEvent $event) {
// ... Handle event
});
$loop->run();
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
Please see License File for more information.