Lines Matching refs:asyncResource
413 const asyncResource = new AsyncResource(
423 asyncResource.runInAsyncScope(fn, thisArg, ...args);
426 asyncResource.emitDestroy();
429 asyncResource.asyncId();
432 asyncResource.triggerAsyncId();
441 const asyncResource = new AsyncResource(
451 asyncResource.runInAsyncScope(fn, thisArg, ...args);
454 asyncResource.emitDestroy();
457 asyncResource.asyncId();
460 asyncResource.triggerAsyncId();
522 The returned function will have an `asyncResource` property referencing
525 ### `asyncResource.bind(fn[, thisArg])`
546 The returned function will have an `asyncResource` property referencing
549 ### `asyncResource.runInAsyncScope(fn[, thisArg, ...args])`
565 ### `asyncResource.emitDestroy()`
567 * Returns: {AsyncResource} A reference to `asyncResource`.
574 ### `asyncResource.asyncId()`
578 ### `asyncResource.triggerAsyncId()`