Skip to main content

init

method HookCallbacks.init
Jump to headingHookCallbacks.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 Jump to heading

Jump to headingasyncId: number

A unique ID for the async resource

Jump to headingtype: string

The type of the async resource

Jump to headingtriggerAsyncId: number

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

Jump to headingresource: object

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

Return Type Jump to heading

void
Back to top