stdlib library
Portable logical-clock standard-library primitives.
Classes
- RevisionBarrier
- A revision barrier with separate authoritative revision and wake generation.
- RevisionBarrierObservation
- An externally observable RevisionBarrier state.
-
Timeout<
T> - A deterministic timeout wrapper with caller-driven operation and cancellation adapters.
-
TimeoutObservation<
T> - An externally observable Timeout state.
-
TimeoutOperation<
T> - State supplied by one timeout operation-adapter poll.
- Timer
- A deterministic single-shot timer driven by caller-supplied logical time.
- TimerObservation
- An externally observable Timer state.
Enums
- TimeoutCancellation
- State supplied by a caller-owned cancellation adapter.
Properties
- maxJsonSafeInteger → BigInt
-
Largest integer represented exactly by every Dart target, including JS.
final
- maxUint64 → BigInt
-
Largest value accepted by the portable clock contract.
final
Functions
-
checkedDeadline(
BigInt now, BigInt duration) → BigInt -
Return
now + duration, or throw a typeddeadline_overflowfailure. -
jsonSafeUint64(
BigInt value) → Object -
Project an exact uint64 into a value accepted by
dart:convert.
Exceptions / Errors
- A typed portable-stdlib failure.