Home
last modified time | relevance | path

Searched refs:executionAsyncResource (Results 1 – 14 of 14) sorted by relevance

/third_party/node/test/async-hooks/
Dtest-async-exec-resource-http-32060.js5 executionAsyncResource,
26 assert.strictEqual(executionAsyncResource(), hooked[executionAsyncId()]);
28 assert.strictEqual(executionAsyncResource(), hooked[executionAsyncId()]);
30 assert.strictEqual(executionAsyncResource(), hooked[executionAsyncId()]);
33 assert.strictEqual(executionAsyncResource(), hooked[executionAsyncId()]);
Dtest-async-exec-resource-match.js8 executionAsyncResource,
42 const execRes = executionAsyncResource();
50 const execRes = executionAsyncResource();
58 const execRes = executionAsyncResource();
Dtest-async-exec-resource-http.js6 executionAsyncResource,
24 assert.strictEqual(executionAsyncResource(), hooked[executionAsyncId()]);
27 assert.strictEqual(executionAsyncResource(), hooked[executionAsyncId()]);
/third_party/node/test/parallel/
Dtest-async-hooks-execution-async-resource.js5 const { executionAsyncResource, createHook } = require('async_hooks');
11 assert.ok(executionAsyncResource());
15 const cr = executionAsyncResource();
21 executionAsyncResource()[sym] = { state: req.url }; variable
23 const { state } = executionAsyncResource()[sym];
Dtest-async-hooks-execution-async-resource-await.js6 const { executionAsyncResource, createHook } = require('async_hooks');
13 assert.ok(executionAsyncResource());
17 const cr = executionAsyncResource();
23 executionAsyncResource()[sym] = { state: req.url }; variable
25 const { state } = executionAsyncResource()[sym];
/third_party/node/test/node-api/test_async_context/
Dtest-gcable-callback.js52 const executionAsyncResource = async_hooks.executionAsyncResource(); constant
58 assert.strictEqual(typeof executionAsyncResource, 'object');
59 assert.strictEqual(executionAsyncResource.foo, undefined);
Dtest.js47 async_hooks.executionAsyncResource()
55 async_hooks.executionAsyncResource()
/third_party/node/lib/
Dasync_hooks.js38 executionAsyncResource,
252 const currentResource = executionAsyncResource();
296 const resource = executionAsyncResource();
308 const resource = executionAsyncResource();
334 const resource = executionAsyncResource();
348 executionAsyncResource, property
/third_party/node/benchmark/async_hooks/
Dasync-resource-vs-destroy.js10 executionAsyncResource,
37 const resource = executionAsyncResource();
45 const resource = executionAsyncResource();
54 const cr = executionAsyncResource();
/third_party/node/test/node-api/test_make_callback/
Dtest-async-hooks.js44 assert.strictEqual(async_hooks.executionAsyncResource(), resource);
/third_party/node/lib/internal/
Dasync_hooks.js51 executionAsyncResource: executionAsyncResource_,
144 function executionAsyncResource() { function
587 executionAsyncResource, property
/third_party/node/doc/api/
Dasync_hooks.md490 ### `async_hooks.executionAsyncResource()`
499 Resource objects returned by `executionAsyncResource()` are most often internal
503 Using `executionAsyncResource()` in the top-level execution context will
509 const { executionAsyncId, executionAsyncResource } = require('async_hooks');
511 console.log(executionAsyncId(), executionAsyncResource()); // 1 {}
513 console.log(executionAsyncId(), executionAsyncResource()); // 7 FSReqWrap
524 executionAsyncResource,
531 const cr = executionAsyncResource();
539 executionAsyncResource()[sym] = { state: req.url };
541 res.end(JSON.stringify(executionAsyncResource()[sym]));
Dn-api.md5202 accessed by [`async_hooks.executionAsyncResource()`][].
5222 [`init` hooks][] and `async_hooks.executionAsyncResource()` as the resource is
6036 [`async_hooks.executionAsyncResource()`]: async_hooks.md#async_hooks_async_hooks_executionasyncreso…
/third_party/node/doc/changelogs/
DCHANGELOG_V13.md347 …://github.com/nodejs/node/commit/6af9e7e0c3)] - **async_hooks**: executionAsyncResource matches in…
443 * add executionAsyncResource (Matteo Collina) [#30959](https://github.com/nodejs/node/pull/30959)
468 …de/commit/6be51296e4)] - **(SEMVER-MINOR)** **async_hooks**: add executionAsyncResource (Matteo Co…