Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • HookCallbacks

Index

Methods

Optional after

  • after(asyncId: number): void
  • Called immediately after the callback specified in before is completed.

    Parameters

    • asyncId: number

      the unique identifier assigned to the resource which has executed the callback.

    Returns void

Optional before

  • before(asyncId: number): void
  • When an asynchronous operation is initiated or completes a callback is called to notify the user. The before callback is called just before said callback is executed.

    Parameters

    • asyncId: number

      the unique identifier assigned to the resource about to execute the callback.

    Returns void

Optional destroy

  • destroy(asyncId: number): void
  • Called after the resource corresponding to asyncId is destroyed

    Parameters

    • asyncId: number

      a unique ID for the async resource

    Returns void

Optional init

  • init(asyncId: number, type: string, triggerAsyncId: number, resource: object): void
  • Called when a class is constructed that has the possibility to emit an asynchronous event.

    Parameters

    • asyncId: number

      a unique ID for the async resource

    • type: string

      the type of the async resource

    • triggerAsyncId: number

      the unique ID of the async resource in whose execution context this async resource was created

    • resource: object

      reference to the resource representing the async operation, needs to be released during destroy

    Returns void

Optional promiseResolve

  • promiseResolve(asyncId: number): void
  • Called when a promise has resolve() called. This may not be in the same execution id as the promise itself.

    Parameters

    • asyncId: number

      the unique id for the promise that was resolve()d.

    Returns void

Generated using TypeDoc