CallbackCancellable class
Methods
-
detach()
→ void
-
Detatches from the
CancellationToken. This should be called after
completing without cancellation.
inherited
-
maybeAttach(CancellationToken? token)
→ bool
-
Attaches to the
CancellationToken only if it hasn't already been
cancelled. If the token has already been cancelled, onCancel is called
instead.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onCancel(Exception cancelException)
→ void
-
Called when the attached token is cancelled.
-
toString()
→ String
-
A string representation of this object.
inherited