dropOldestWatcher

fnbool dropOldestWatcher(Slot, RemoveFn)(LimitKind kind, scope Slot[] slots, scope RemoveFn removeFn) @trusted nothrow

Drop the oldest watcher matching a limit kind.

Scans all slots for the oldest registered watcher matching the limit category and removes it via the provided callback.

Parameters

kindLimit category to match.
slotsWatcher slot array to scan.
removeFnCallback to remove a slot: (uint index, ref Slot) => void.

Returns

true if a watcher was found and removed.