diff --git a/test.php b/test.php index 221ada9dbaae6abab226ef21c65bbf64b6caba88..30d2800b7c66fbbd779f9eb867516e7db4dc6ad3 100644 --- a/test.php +++ b/test.php @@ -6,4 +6,8 @@ function task($a, $b) echo $b . PHP_EOL; } -Study\Coroutine::create('task', 'a', 'b'); \ No newline at end of file +Study\Coroutine::create('task', 'a', 'b'); +Study\Coroutine::create(function ($a, $b) { + echo $a . PHP_EOL; + echo $b . PHP_EOL; +}, 'a', 'b');