RealTimeNgZoneStabilizer class

Observes NgZone and custom parent zone to stabilize.

  • Any microtasks are automatically waited for stability in update.
  • Any timers are automatically waited for stability in update.

This stabilizer is a good choice for most tests.

NOTE: Periodic timers are not supported by this stabilizer.

Inheritance

Constructors

RealTimeNgZoneStabilizer(TimerHookZone timerZone, NgZone ngZone)
Creates a new stabilizer which manages a custom zone around an NgZone.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isStable bool
Whether this stabilizer is currently stable.
no setter
ngZone → NgZone
Instance of NgZone that was created for this stabilizer.
finalinherited
pendingTimers → PriorityQueue<_ObservedTimer>
Timer instances that are currently pending execution.
finalinherited
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
stabilize({void runAndTrackSideEffects()?, int threshold = 100}) Future<void>
Runs update until it completes with false, reporting stabilized.
inherited
stabilizeWithThreshold(int threshold) Future<void>
Run update until the stabilizer is stable or threshold exceeds.
inherited
toString() String
A string representation of this object.
inherited
update([void runAndTrackSideEffects()?]) Future<bool>
Returns a future that completes after processing DOM update events.
inherited
waitForAsyncEvents() Future<void>
May be overridden to change what is awaited.

Operators

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