From 70b71d11de66abc19f1713e1abdb7af9d0e48537 Mon Sep 17 00:00:00 2001 From: Andrew Carter Date: Thu, 18 Feb 2016 11:39:58 +0000 Subject: [PATCH] Switched from timer/period to once/repeat --- src/EventLoopInterface.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventLoopInterface.php b/src/EventLoopInterface.php index bfb783f..124ff8d 100644 --- a/src/EventLoopInterface.php +++ b/src/EventLoopInterface.php @@ -27,12 +27,12 @@ interface EventLoopInterface /** * @return WatcherInterface */ - public function timer(callable $callback, float $time, $data = null); + public function once(callable $callback, float $time, $data = null); /** * @return WatcherInterface */ - public function periodic(callable $callback, float $interval, $data = null); + public function repeat(callable $callback, float $interval, $data = null); /** * @return WatcherInterface