ext-uv/examples/async.php

11 lines
160 B
PHP
Raw Normal View History

2012-06-17 16:18:33 +02:00
<?php
$loop = uv_default_loop();
2020-02-15 18:11:57 +01:00
$async = uv_async_init($loop, function($async) {
2012-06-17 16:18:33 +02:00
var_dump(1);
2012-07-07 15:02:57 +02:00
uv_close($async);
2012-06-17 16:18:33 +02:00
});
uv_async_send($async);
uv_run();