TimeoutSignal class final

An AbortSignal that aborts after a certain duration has elapsed.

The signal will be trigerred before the deadline if the parent aborts.

Implemented types

Constructors

TimeoutSignal(Duration timeout, {AbortSignal? parent, Object? reason})

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

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