Async Hooks

Async Hooks API

Life Time Events of Async Resources

  • init(asyncId, type, triggerAsyncId, resource) called once
  • before(asyncId) called zero or more times
  • after(asyncId) called zero or more times
  • destroy(asyncId) called once