ManagedZone class abstract
A generic implementation of managed zone that has no dependencies directly on a framework like Angular. This makes it more testable than the VmTurnZone provided by Angular.
- Implemented types
- Implementers
- Annotations
-
- @Deprecated('Use NgZone directly instead')
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- inInnerZone → bool
-
Whether we are currently executing in the inner zone. This can be used by
clients to optimize and call runOutside when needed.
no setter
- inOuterZone → bool
-
Whether we are currently executing in the outer zone. This can be used by
clients to optimize and call runInside when needed.
no setter
- isRunning → bool
-
Whether onTurnStart has been triggered and onTurnDone has not.
no setter
- onEventDone → Stream
-
A synchronous stream that fires when the last turn in an event completes.
This indicates VM event loop end.
no setter
- onTurnDone → Stream
-
A synchronous stream that fires when the VM turn is finished, which means
when the inner (managed) zone has completed it's private microtask queue.
no setter
- onTurnStart → Stream
-
A synchronous stream that fires when the VM turn has started, which means
that the inner (managed) zone has not executed any microtasks.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Disposes this disposable and any resources it has open.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runInside<
T> (T fn()) → T -
Runs the code within
fninside of this zone. This may trigger an onTurnStart and onTurnDone event if you are outside the zone when calling. onTurnStart may be executed after executingfn. -
runOutside<
T> (T fn()) → T -
Runs the code within
fnoutside of this zone. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited