mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 02:39:47 +02:00
24 lines
667 B
PHP
24 lines
667 B
PHP
<?php
|
|
|
|
namespace React\EventLoop;
|
|
|
|
use React\EventLoop\Timer\TimerInterface;
|
|
|
|
interface LoopInterface
|
|
{
|
|
public function addReadStream($stream, $listener);
|
|
public function addWriteStream($stream, $listener);
|
|
|
|
public function removeReadStream($stream);
|
|
public function removeWriteStream($stream);
|
|
public function removeStream($stream);
|
|
|
|
public function addTimer($interval, $callback);
|
|
public function addPeriodicTimer($interval, $callback);
|
|
public function cancelTimer(TimerInterface $timer);
|
|
public function isTimerActive(TimerInterface $timer);
|
|
|
|
public function tick();
|
|
public function run();
|
|
public function stop();
|
|
}
|