1
0
mirror of https://github.com/danog/amp.git synced 2024-12-03 18:07:57 +01:00

Switched from timer/period to once/repeat

This commit is contained in:
Andrew Carter 2016-02-18 11:39:58 +00:00
parent c540de2483
commit 70b71d11de

View File

@ -27,12 +27,12 @@ interface EventLoopInterface
/** /**
* @return WatcherInterface * @return WatcherInterface
*/ */
public function timer(callable $callback, float $time, $data = null); public function once(callable $callback, float $time, $data = null);
/** /**
* @return WatcherInterface * @return WatcherInterface
*/ */
public function periodic(callable $callback, float $interval, $data = null); public function repeat(callable $callback, float $interval, $data = null);
/** /**
* @return WatcherInterface * @return WatcherInterface