PendingWork class

Work the app has queued as the action landed that may still change the screen: one-shot timers (Future.delayed included) and HTTP requests in flight.

Constructors

PendingWork({List<int> timersDueMs = const [], int httpInFlight = 0})

Properties

hashCode → int
The hash code for this object.
no setterinherited
httpInFlight → int
HTTP requests started as the action was delivered that have no complete response and no error; seen whenever the app's HTTP timeline logging is on.
final
readAt → DateTime
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timersDueMs → List<int>
Milliseconds until each pending one-shot timer, created as the action was delivered, fires.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
waitFor(Duration capLeft) → Duration?
How long a late-change wait should run to see this work land, at most capLeft; null when nothing is pending inside it.

Operators

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

Static Methods

read(VmServiceRuntime runtime, Duration sinceDelivery, {int? appClockOffsetMs}) → Future<PendingWork>
Reads the app's pending timers (the VM keeps them in a private heap of the dart:isolate library) and in-flight requests; sinceDelivery is how long ago delivery ended. Empty when the VM or SDK does not expose them.