CancellationToken class final

A cancellation request. Await the operation itself to observe its actual database outcome; completion can win a race with cancellation.

Constructors

CancellationToken()

Properties

hashCode int
The hash code for this object.
no setterinherited
isCancelled bool
Whether cancellation has been requested; it does not describe SQL outcome.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → void
Requests cancellation once and notifies all currently registered listeners.
listen(void listener()) → void Function()
Adapter hook; returns a function that removes the listener. Listener errors are isolated so every pending operation receives cancellation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited