Registrations class
Set of all the registrations in the token source.
Constructors
- Registrations.new(CancellationTokenSource source)
- Tracks the running callback to assist ctr.Dispose() to wait for the target callback to complete. Initializes the instance.
Properties
- callbacks ↔ CallbackNode?
-
Doubly-linked list of callbacks registered with the source. Callbacks
are removed during unregistration and as they're invoked.
getter/setter pair
- freeNodeList ↔ CallbackNode?
-
Singly-linked list of free nodes that can be used for subsequent
callback registrations.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → CancellationTokenSource
-
The associated source.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
int id, CallbackNode? node) → bool - Unregisters a callback.
-
unregisterAll(
) → void - Moves all registrations to the free list.
-
waitForCallbackToComplete(
) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited