Async Hooks

Async Hooks API

init(asyncId, type, triggerAsyncId, resource)

  • asyncId unique ID for asynchronous resource
  • type type of the asynchronous resource == the provider
  • triggerAsyncId the unique ID of the asynchronous resource in whose execution context this asynchronous resource was created
  • resource reference to the resource associated with the asynchronous operation