Home
last modified time | relevance | path

Searched refs:asyncResource (Results 1 – 8 of 8) sorted by relevance

/third_party/node/test/parallel/
Dtest-asyncresource-bind.js16 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() {
Dtest-eventemitter-asyncresource.js72 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/
Dtest-gcable-callback.js35 const asyncResource = createAsyncResource( constant
51 makeCallback(asyncResource, process, () => {
60 destroyAsyncResource(asyncResource);
/third_party/node/lib/internal/process/
Dtask_queues.js152 const asyncResource = new AsyncResource(
156 asyncResource.callback = callback;
158 enqueueMicrotask(FunctionPrototypeBind(runMicrotask, asyncResource));
/third_party/node/doc/api/
Dasync_context.md413 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 …]
Ddeprecations.md1984 Use [`asyncResource.runInAsyncScope()`][] API instead which provides a much
3374 [`asyncResource.runInAsyncScope()`]: async_context.md#asyncresourceruninasyncscopefn-thisarg-args
Devents.md1954 ### `eventemitterasyncresource.asyncResource`
/third_party/node/lib/
Devents.js163 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