1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php namespace gipfl\SimpleDaemon; use React\EventLoop\LoopInterface; use React\Promise\ExtendedPromiseInterface; interface DaemonTask { /** * @param LoopInterface $loop * @return ExtendedPromiseInterface */ public function start(LoopInterface $loop); /** * @return ExtendedPromiseInterface */ public function stop(); }