diff options
Diffstat (limited to 'vendor/gipfl/simple-daemon/src/DaemonTask.php')
-rw-r--r-- | vendor/gipfl/simple-daemon/src/DaemonTask.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/gipfl/simple-daemon/src/DaemonTask.php b/vendor/gipfl/simple-daemon/src/DaemonTask.php new file mode 100644 index 0000000..70fc71a --- /dev/null +++ b/vendor/gipfl/simple-daemon/src/DaemonTask.php @@ -0,0 +1,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(); +} |