Home
last modified time | relevance | path

Searched refs:asyncResource (Results 1 – 5 of 5) 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());
/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.js155 const asyncResource = new AsyncResource(
159 asyncResource.callback = callback;
161 enqueueMicrotask(FunctionPrototypeBind(runMicrotask, asyncResource));
/third_party/node/doc/api/
Dasync_hooks.md679 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 …]
Ddeprecations.md1864 Use [`asyncResource.runInAsyncScope()`][] API instead which provides a much
2694 [`asyncResource.runInAsyncScope()`]: async_hooks.md#async_hooks_asyncresource_runinasyncscope_fn_th…