waitRequest()) { try { $resp = new \Nyholm\Psr7\Response(); sleep(mt_rand(1,20)); $resp->getBody()->write("hello world"); $psr7->respond($resp); } catch (\Throwable $e) { $psr7->getWorker()->error((string)$e); } }