CancelableSignal class final

An AbortSignal that is triggered by calling the cancel method.

The signal is also trigerred when the parent gets cancelled.

Implemented types

Constructors

CancelableSignal({AbortSignal? parent})

Properties

deadline → DateTime?
An optional deadline, if signal is time bound.
no setterinherited
future → Future<ConnectException>
The future that completes when the signal is aborted.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel([Object? reason]) → void
Cancels the signal. reason is used to dereive the result of the future, using ConnectException.from.
errorFromReason(Object? reason, Code code, String message) → ConnectException
inherited
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