RecordingRuntimeObserver class final
Records Runtime events in callback order for assertions and diagnostics.
The observer is synchronous, just like RuntimeObserver. Waiting APIs are completed from the same callback without introducing work into the Runtime.
- Inheritance
-
- Object
- RuntimeObserver
- RecordingRuntimeObserver
Constructors
Properties
-
activeExecutionIds
→ Set<
int> -
Managed executions that started but have not emitted physical completion.
no setter
-
events
→ List<
Object> -
Immutable snapshot of every recorded event.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether this recorder no longer accepts events or waiters.
no setter
- pendingWaiterCount → int
-
Number of currently waiting event queries.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Clear recorded history without affecting active waiters or execution ownership tracking.
-
dispose(
) → void - Stop recording and fail all pending waiters.
-
eventsOf<
T extends Object> () → Iterable< T> -
Recorded events assignable to
T, in callback order. -
firstWhere<
T extends Object> ([bool where(T event)?]) → T? -
Return the first previously recorded event assignable to
T. -
lastOf<
T extends Object> () → T? -
Latest event assignable to
T, or null when none was recorded. -
next<
T extends Object> ({bool where(T event)?, Duration timeout = const Duration(seconds: 5)}) → Future< T> -
Wait for the next event assignable to
Tthat satisfieswhere. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onCleanupFailure(
CleanupFailureEvent event) → void -
override
-
onExecutionEnd(
ExecutionEndEvent event) → void -
override
-
onExecutionStart(
ExecutionStartEvent event) → void -
override
-
onInterruption(
InterruptionEvent event) → void -
override
-
onResourceRelease(
ResourceReleaseEvent event) → void -
override
-
onRetry(
RetryEvent event) → void -
override
-
onServiceAcquire(
ServiceAcquireEvent event) → void -
override
-
onServiceResolve(
ServiceResolveEvent event) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited