summaryrefslogtreecommitdiffstats
path: root/vendor/gipfl/simple-daemon/src/DaemonTask.php
blob: 70fc71a0628a803a7ede24738d86b9a1686a1d6b (plain)
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();
}