interface HookCallbacks
Methods Jump to heading
optional
Jump to headinginit(asyncId: number,type: string,triggerAsyncId: number,resource: object,): voidCalled when a class is constructed that has the possibility to emit an asynchronous event.
optional
Jump to headingbefore(asyncId: number): voidWhen 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.
optional
Jump to headingafter(asyncId: number): voidCalled immediately after the callback specified in before is completed.
If an uncaught exception occurs during execution of the callback, then after will run after the 'uncaughtException' event is emitted or a domain's handler runs.
optional
Jump to headingpromiseResolve(asyncId: number): voidCalled when a promise has resolve() called. This may not be in the same execution id as the promise itself.
optional
Jump to headingdestroy(asyncId: number): voidCalled after the resource corresponding to asyncId is destroyed