SignalState.hasSignalWatcher

bool hasSignalWatcher(Slot)(Signal signal, scope const(Slot)[] slots) const @safe nothrow @nogc

Check whether a specific signal has any registered watcher.

Parameters

signalThe signal type to look for.
slotsWatcher slot array to scan.

Returns

true if at least one enabled watcher is registered for the signal.