Timeout<T> class

A deterministic timeout wrapper with caller-driven operation and cancellation adapters.

Constructors

Timeout(BigInt now, BigInt duration)

Properties

deadline BigInt
final
hashCode int
The hash code for this object.
no setterinherited
initial TimeoutObservation<T>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
poll(BigInt now, TimeoutOperation<T> operation(), TimeoutCancellation cancellation()) TimeoutObservation<T>
Poll both adapters exactly once before the deadline.
pollFuture(BigInt now, FutureOr<TimeoutOperation<T>> operation(), FutureOr<TimeoutCancellation> cancellation()) Future<TimeoutObservation<T>>
Future adapter for caller-owned async operation and cancellation seams.
toString() String
A string representation of this object.
inherited

Operators

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