Skip to content

Commit 82d17a5

Browse files
committed
[EventLoop] Add timers to LoopInterface
1 parent fd23ac4 commit 82d17a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

LoopInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ public function removeReadStream($stream);
1111
public function removeWriteStream($stream);
1212
public function removeStream($stream);
1313

14+
public function addTimer($interval, $callback);
15+
public function addPeriodicTimer($interval, $callback);
16+
public function cancelTimer($signature);
17+
1418
public function tick();
1519
public function run();
1620
public function stop();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy