thruster / process-exit-handler
Thruster ProcessExitHandler Component
1.0.0
2016-01-12 15:43 UTC
Requires
- php: >=7.0
- thruster/event-emitter: ~1.0
- thruster/event-loop: ~1.0
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2025-02-14 04:02:27 UTC
README
[]
(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
Install
Via Composer
$ composer require thruster/process-exit-handler
Usage
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();
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
License
Please see License File for more information.