Timeout<T> class
A deterministic timeout wrapper with caller-driven operation and cancellation adapters.
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< operation(), FutureOr<T> >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