public static function waitAllEvents() { if (!self::$supported) { return; } while ($n = eio_nreqs()) { eio_poll(); } }
public function workPendingCount() { return eio_nreqs() + eio_npending() + eio_nready(); }