Searched refs:asyncResource (Results 1 – 5 of 5) sorted by relevance
/third_party/node/test/parallel/ |
D | test-asyncresource-bind.js | 16 const asyncResource = new AsyncResource('test'); constant 19 assert.throws(() => asyncResource.bind(i), { 24 const fn2 = asyncResource.bind((a, b) => { 28 assert.strictEqual(fn2.asyncResource, asyncResource); 33 assert.strictEqual(asyncResource.asyncId(), fn2());
|
/third_party/node/test/node-api/test_async_context/ |
D | test-gcable-callback.js | 35 const asyncResource = createAsyncResource( constant 51 makeCallback(asyncResource, process, () => { 60 destroyAsyncResource(asyncResource);
|
/third_party/node/lib/internal/process/ |
D | task_queues.js | 155 const asyncResource = new AsyncResource( 159 asyncResource.callback = callback; 161 enqueueMicrotask(FunctionPrototypeBind(runMicrotask, asyncResource));
|
/third_party/node/doc/api/ |
D | async_hooks.md | 679 const asyncResource = new AsyncResource( 689 asyncResource.runInAsyncScope(fn, thisArg, ...args); 692 asyncResource.emitDestroy(); 695 asyncResource.asyncId(); 698 asyncResource.triggerAsyncId(); 748 The returned function will have an `asyncResource` property referencing 751 #### `asyncResource.bind(fn)` 760 The returned function will have an `asyncResource` property referencing 763 #### `asyncResource.runInAsyncScope(fn[, thisArg, ...args])` 778 #### `asyncResource.emitDestroy()` [all …]
|
D | deprecations.md | 1864 Use [`asyncResource.runInAsyncScope()`][] API instead which provides a much 2694 [`asyncResource.runInAsyncScope()`]: async_hooks.md#async_hooks_asyncresource_runinasyncscope_fn_th…
|