LeasedDrainResult class final

What drainWithLease did.

Constructors

LeasedDrainResult.skipped()
The lease was held by another runner, so nothing ran.
const

Properties

drain → DrainResult?
The result of DurableQueue.drain, or null if the drain was skipped.
final
hashCode → int
The hash code for this object.
no setterinherited
leaseLost → bool
Whether the lease could not be renewed while the drain ran, so another runner may have started the same storage in the meantime. This means the drain was frozen for longer than the lease ttl.
final
nextWakeAt → DateTime?
When stored work is next due (see DrainResult.nextWakeAt), or null.
no setter
ran → bool
Whether the drain ran.
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.
override

Operators

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