Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AsyncZone

Provides a zone that checks for zone stability and emits events when the zone's stability changes. This is useful for running code when asynchronous code has completely finished executing, and no further execution is possible.

Hierarchy

  • AsyncZone

Index

Constructors

constructor

  • new AsyncZone(name: string, properties?: any): AsyncZone

Accessors

onError

  • get onError(): Observable<Error>

onMicrotaskEmpty

  • get onMicrotaskEmpty(): Observable<void>

onStable

  • get onStable(): Observable<void>

zone

  • get zone(): any
  • Get the underlying Zone object.

    todo

    Typed as any to avoid issue where this reference to Zone is undefined because we cannot directly export Zone's types without directly referencing Zone. PRs welcome.

    Returns any

    Zone

Methods

checkStable

  • checkStable(): void

invoke

  • invoke(callback: () => void): void

onEnter

  • onEnter(): void

onLeave

  • onLeave(): void

runOutside

  • runOutside(runnable: any): void

Static run

Generated using TypeDoc