primitives library

Primitives

To use, import package:extensions/primitives.dart.

Classes

AsyncDisposable
Provides a mechanism for releasing unmanaged resources asynchronously.
CallbackNode
All of the state associated a registered callback, in a node that's part of a linked list of registered callbacks.
CancellationCallbackInfo
CancellationChangeToken
A ChangeToken implementation using CancellationToken.
CancellationToken
Propagates notification that operations should be canceled.
CancellationTokenRegistration
CancellationTokenSource
Signals to a CancellationToken that it should be canceled.
ChangeToken
Propagates notifications that a change has occurred.
CompositeChangeToken
An ChangeToken which represents one or more ChangeToken instances.
Disposable
Provides a mechanism for releasing unmanaged resources.
LinkedNCancellationTokenSource
Registrations
Set of all the registrations in the token source.

Typedefs

TimerCallback = void Function(Object? state)
VoidCallback = void Function()