summaryrefslogtreecommitdiffstats
path: root/vendor/gipfl/simple-daemon/src/DaemonTask.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gipfl/simple-daemon/src/DaemonTask.php')
-rw-r--r--vendor/gipfl/simple-daemon/src/DaemonTask.php20
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();
+}