Home
last modified time | relevance | path

Searched refs:AsyncResource (Results 1 - 19 of 19) sorted by relevance

/third_party/node/src/api/
H A Dasync_resource.cc14 AsyncResource::AsyncResource(Isolate* isolate, in AsyncResource() function in node::AsyncResource
25 AsyncResource::~AsyncResource() { in ~AsyncResource()
29 MaybeLocal<Value> AsyncResource::MakeCallback(Local<Function> callback, in MakeCallback()
37 MaybeLocal<Value> AsyncResource::MakeCallback(const char* method, in MakeCallback()
45 MaybeLocal<Value> AsyncResource::MakeCallback(Local<String> symbol, in MakeCallback()
53 Local<Object> AsyncResource::get_resource() { in get_resource()
57 async_id AsyncResource::get_async_id() const { in get_async_id()
61 async_id AsyncResource
[all...]
/third_party/node/test/addons/async-resource/
H A Dbinding.cc8 using node::AsyncResource;
22 class CustomAsyncResource : public AsyncResource {
25 : AsyncResource(isolate, resource, "CustomAsyncResource") {} in CustomAsyncResource()
34 AsyncResource* r; in CreateAsyncResource()
36 r = new AsyncResource(isolate, args[0].As<Object>(), "foobär", in CreateAsyncResource()
39 r = new AsyncResource(isolate, args[0].As<Object>(), "foobär"); in CreateAsyncResource()
48 auto r = static_cast<AsyncResource*>(args[0].As<External>()->Value()); in DestroyAsyncResource()
55 auto r = static_cast<AsyncResource*>(args[0].As<External>()->Value()); in CallViaFunction()
72 auto r = static_cast<AsyncResource*>(args[0].As<External>()->Value()); in CallViaString()
85 auto r = static_cast<AsyncResource*>(arg in CallViaUtf8Name()
[all...]
/third_party/node/benchmark/async_hooks/
H A Dgc-tracking.js3 const { createHook, AsyncResource } = require('async_hooks');
30 new AsyncResource('foobar');
38 new AsyncResource('foobar');
45 new AsyncResource('foobar', { requireManualDestroy: true });
H A Dasync-local-storage-propagate-asyncresource.js3 const { AsyncLocalStorage, AsyncResource } = require('async_hooks');
11 * - new AsyncResource()
12 * - new AsyncResource()
33 new AsyncResource('noop');
H A Dasync-local-storage-getstore-nested-resources.js3 const { AsyncLocalStorage, AsyncResource } = require('async_hooks');
11 * - AsyncResource.runInAsyncScope
12 * - AsyncResource.runInAsyncScope
14 * - AsyncResource.runInAsyncScope
32 const resource = new AsyncResource('noop');
/third_party/node/test/async-hooks/
H A Dtest-destroy-not-blocked.js8 const { createHook, AsyncResource } = require('async_hooks');
31 const res = new AsyncResource(resType);
42 const res = new AsyncResource(resType);
53 const res = new AsyncResource(resType);
63 const res = new AsyncResource(resType);
74 const res = new AsyncResource(resType);
H A Dtest-embedder.api.async-resource.js7 const { AsyncResource } = async_hooks;
16 () => new AsyncResource(), {
21 new AsyncResource('invalid_trigger_id', { triggerAsyncId: null });
28 new AsyncResource('default_trigger_id').triggerAsyncId(),
35 const alcaEvent = new AsyncResource('alcazares', alcaTriggerId);
71 const pobEvent = new AsyncResource('poblado', pobTriggerId);
H A Dtest-callback-error.js14 new async_hooks.AsyncResource(`${arg}_type`);
21 const resource = new async_hooks.AsyncResource(`${arg}_type`);
30 new async_hooks.AsyncResource(`${arg}_type`);
/third_party/node/test/parallel/
H A Dtest-async-hooks-run-in-async-scope-this-arg.js7 const { AsyncResource } = require('async_hooks');
11 const res = new AsyncResource('fhqwhgads');
H A Dtest-async-hooks-recursive-stack-runInAsyncScope.js9 const a = new async_hooks.AsyncResource('foobar');
/third_party/node/lib/
H A Dasync_hooks.js159 class AsyncResource {
171 // Unlike emitInitScript, AsyncResource doesn't supports null as the
261 return (new AsyncResource(type || 'bound-anonymous-fn')).bind(fn, thisArg);
283 return AsyncResource.bind(fn);
325 // Avoid creation of an AsyncResource if store is already active
375 AsyncResource,
H A D_http_agent.js49 const { AsyncResource } = require('async_hooks');
304 req[kRequestAsyncResource] = new AsyncResource('QueuedRequest');
H A Devents.js100 AsyncResource,
105 class EventEmitterReferencingAsyncResource extends AsyncResource {
/third_party/node/lib/internal/process/
H A Dtask_queues.js42 const { AsyncResource } = require('async_hooks');
152 const asyncResource = new AsyncResource(
/third_party/node/test/common/
H A Dongc.js28 gcTrackerMap.set(obj, new async_hooks.AsyncResource(gcTrackerTag));
/third_party/node/src/
H A Dnode.h1277 * `AsyncResource::MakeCallback()` is used, then all four callbacks will be
1279 class NODE_EXTERN AsyncResource { class
1281 AsyncResource(v8::Isolate* isolate,
1286 virtual ~AsyncResource();
1288 AsyncResource(const AsyncResource&) = delete;
1289 void operator=(const AsyncResource&) = delete;
1313 explicit CallbackScope(AsyncResource* res);
H A Dnode_api.cc200 class ThreadSafeFunction : public node::AsyncResource {
212 : AsyncResource(env_->isolate, in ThreadSafeFunction()
531 * Compared to node::AsyncResource, the resource object in AsyncContext is
1152 class Work : public node::AsyncResource, public node::ThreadPoolWork {
1160 : AsyncResource( in Work()
/third_party/node/lib/internal/test_runner/
H A Dutils.js23 const { AsyncResource } = require('async_hooks');
173 const reporterScope = new AsyncResource('TestReporterScope');
H A Dtest.js29 const { AsyncResource } = require('async_hooks');
203 class Test extends AsyncResource {

Completed in 10 milliseconds