--TEST-- Test for `Future` and `Service::lastError()`. --SKIPIF-- --FILE-- post(function () use ($service) { $signal = $service->addSignal(); $signal->add(SIGINT); $service->post(function () { posix_kill(posix_getpid(), SIGINT); }); echo yield $signal->wait(); }); $service->run(); ?> --EXPECT-- 2