method HookCallbacks.initHookCallbacks.init(asyncId: number,type: string,triggerAsyncId: number,resource: object,): voidDeprecatedCalled when a class is constructed that has the possibility to emit an asynchronous event. ParametersasyncId: numberA unique ID for the async resource type: stringThe type of the async resource triggerAsyncId: numberThe unique ID of the async resource in whose execution context this async resource was created resource: objectReference to the resource representing the async operation, needs to be released during destroy Return Typevoid