DeadlineSignal class final

An AbortSignal that aborts at a specific time.

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

Implemented types

Constructors

DeadlineSignal.new(DateTime deadline, {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