NotifyingByteQueue.isRegistered

Check whether the provided notifier is already registered. This allows the code to avoid calling ready() with the same notifier, which may throw or add duplicate notifiers.

Note: This is an O(n) search, however it should not have a performance impact in most cases since the number of registered notifiers is typically very low.

class NotifyingByteQueue
final
bool
isRegistered

Parameters

notifier NotificationDg

the callback to check for

Return Value

Type: bool

true if the notifier is registered

Meta