mirror of
https://github.com/danog/amp.git
synced 2025-01-22 05:11:42 +01:00
Update EventLoopInterface.php
This commit is contained in:
parent
4da85097d5
commit
c540de2483
@ -20,37 +20,37 @@ interface EventLoopInterface
|
||||
public function stop();
|
||||
|
||||
/**
|
||||
* @return Watcher
|
||||
* @return WatcherInterface
|
||||
*/
|
||||
public function queue(callable $callback, ...$args);
|
||||
|
||||
/**
|
||||
* @return Watcher
|
||||
* @return WatcherInterface
|
||||
*/
|
||||
public function timer(callable $callback, float $time, $data = null);
|
||||
|
||||
/**
|
||||
* @return Watcher
|
||||
* @return WatcherInterface
|
||||
*/
|
||||
public function periodic(callable $callback, float $interval, $data = null);
|
||||
|
||||
/**
|
||||
* @return Watcher
|
||||
* @return WatcherInterface
|
||||
*/
|
||||
public function onReadable($stream, callable $callback, $data = null);
|
||||
|
||||
/**
|
||||
* @return Watcher
|
||||
* @return WatcherInterface
|
||||
*/
|
||||
public function onWritable($stream, callable $callback, $data = null);
|
||||
|
||||
/**
|
||||
* @return Watcher
|
||||
* @return WatcherInterface
|
||||
*/
|
||||
public function onSignal(int $signo, callable $callback, $data = null);
|
||||
|
||||
/**
|
||||
* @return Watcher
|
||||
* @return WatcherInterface
|
||||
*/
|
||||
public function onError(callable $callback);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user