function _sleep($microseconds) { $monitor = new Threaded(); $monitor->synchronized(function () use($microseconds, $monitor) { $monitor->wait($microseconds); }); }
public static function microSleep(int $microseconds) { Server::$sleeper->synchronized(function (int $ms) { Server::$sleeper->wait($ms); }, $microseconds); }