PhaseWatchers.hasOnlyPhaseWatchers

bool hasOnlyPhaseWatchers(Slot)(scope const(Slot)[] slots) const @safe nothrow @nogc

Check if only phase watchers exist (no I/O, timers, signals, or DNS).

Returns true when all enabled watchers are PREPARE, CHECK, or IDLE. This is used to determine whether the loop can exit when no external events are registered.

Parameters

slotsWatcher slot array to inspect.

Returns

true if all enabled watchers are phase watchers, false otherwise.