Skip to content

Commit e8da1e0

Browse files
committed
add timer test
1 parent c83c26a commit e8da1e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/timer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
require dirname(dirname(__FILE__)) . DS . 'vendor' . DS . 'autoload.php';
1212

1313
$loop = \React\EventLoop\Factory::create();
14-
$loop->addPeriodicTimer(60, function() {
14+
$loop->addPeriodicTimer(10, function() {
1515
for($i=0; $i<10; $i++) {
1616
echo "function A", PHP_EOL;
1717
sleep(1);
1818
}
1919
});
2020

21-
$loop->addPeriodicTimer(60, function() {
21+
$loop->addPeriodicTimer(10, function() {
2222
for($i=0; $i<10; $i++) {
2323
echo "function B", PHP_EOL;
2424
sleep(1);

0 commit comments

Comments
 (0)