mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
17 lines
237 B
PHP
17 lines
237 B
PHP
--TEST--
|
|
Check for uv_queue_work
|
|
--FILE--
|
|
<?php
|
|
$loop = uv_default_loop();
|
|
|
|
$a = function(){
|
|
echo "[queue]";
|
|
};
|
|
|
|
$b = function(){
|
|
echo "[finished]";
|
|
};
|
|
$queue = uv_queue_work($loop, $a, $b);
|
|
uv_run();
|
|
--EXPECT--
|
|
[queue][finished] |