Deadline class

An absolute point in time after which work should stop.

A ZfaContext carries an optional Deadline; childSpan can install a fresh one from a timeout. A deadline is advisory — cooperative work checks isExpired at its own checkpoints, the same way it checks cancellation.

Constructors

Deadline(DateTime expiresAt)
A deadline at a fixed instant.
const
Deadline.after(Duration duration)
A deadline duration from now.
factory

Properties

expiresAt → DateTime
The instant this deadline expires at.
final
hashCode → int
The hash code for this object.
no setterinherited
isExpired → bool
Whether the deadline has passed.
no setter
remaining → Duration
Time left before expiry (negative once expired).
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
toString() → String
A string representation of this object.
inherited

Operators

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