aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/php/vendor/react/event-loop/examples/03-ticks.php
blob: 3f36c6d4fd87bf04650b1a24e09a306ced6ee885 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

require __DIR__ . '/../vendor/autoload.php';

$loop = React\EventLoop\Factory::create();

$loop->futureTick(function () {
    echo 'b';
});
$loop->futureTick(function () {
    echo 'c';
});
echo 'a';

$loop->run();