Searched refs:asyncResource (Results 1 – 8 of 8) 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()); 38 const fn3 = asyncResource.bind(common.mustCall(function() { 43 const fn4 = asyncResource.bind(common.mustCall(function() { 48 const fn5 = asyncResource.bind(common.mustCall(function() { 53 const fn6 = asyncResource.bind(common.mustCall(function() {
|
D | test-eventemitter-asyncresource.js | 72 strictEqual(foo.asyncResource.eventEmitter, foo); 84 resource: foo.asyncResource, 108 resource: foo.asyncResource, 129 resource: foo.asyncResource,
|
/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 | 152 const asyncResource = new AsyncResource( 156 asyncResource.callback = callback; 158 enqueueMicrotask(FunctionPrototypeBind(runMicrotask, asyncResource));
|
/third_party/node/doc/api/ |
D | async_context.md | 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(); [all …]
|
D | deprecations.md | 1984 Use [`asyncResource.runInAsyncScope()`][] API instead which provides a much 3374 [`asyncResource.runInAsyncScope()`]: async_context.md#asyncresourceruninasyncscopefn-thisarg-args
|
D | events.md | 1954 ### `eventemitterasyncresource.asyncResource`
|
/third_party/node/lib/ |
D | events.js | 163 const { asyncResource } = this; 165 return ReflectApply(asyncResource.runInAsyncScope, asyncResource, 175 this.asyncResource.emitDestroy(); 184 return this.asyncResource.asyncId(); 193 return this.asyncResource.triggerAsyncId(); 199 get asyncResource() { getter in lazyEventEmitterAsyncResource.EventEmitterAsyncResource
|