/third_party/node/src/api/ |
H A D | async_resource.cc | 14 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 D | binding.cc | 8 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 D | gc-tracking.js | 3 const { createHook, AsyncResource } = require('async_hooks'); 30 new AsyncResource('foobar'); 38 new AsyncResource('foobar'); 45 new AsyncResource('foobar', { requireManualDestroy: true });
|
H A D | async-local-storage-propagate-asyncresource.js | 3 const { AsyncLocalStorage, AsyncResource } = require('async_hooks'); 11 * - new AsyncResource() 12 * - new AsyncResource() 33 new AsyncResource('noop');
|
H A D | async-local-storage-getstore-nested-resources.js | 3 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 D | test-destroy-not-blocked.js | 8 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 D | test-embedder.api.async-resource.js | 7 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 D | test-callback-error.js | 14 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 D | test-async-hooks-run-in-async-scope-this-arg.js | 7 const { AsyncResource } = require('async_hooks'); 11 const res = new AsyncResource('fhqwhgads');
|
H A D | test-async-hooks-recursive-stack-runInAsyncScope.js | 9 const a = new async_hooks.AsyncResource('foobar');
|
/third_party/node/lib/ |
H A D | async_hooks.js | 159 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.js | 49 const { AsyncResource } = require('async_hooks'); 304 req[kRequestAsyncResource] = new AsyncResource('QueuedRequest');
|
H A D | events.js | 100 AsyncResource, 105 class EventEmitterReferencingAsyncResource extends AsyncResource {
|
/third_party/node/lib/internal/process/ |
H A D | task_queues.js | 42 const { AsyncResource } = require('async_hooks'); 152 const asyncResource = new AsyncResource(
|
/third_party/node/test/common/ |
H A D | ongc.js | 28 gcTrackerMap.set(obj, new async_hooks.AsyncResource(gcTrackerTag));
|
/third_party/node/src/ |
H A D | node.h | 1277 * `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 D | node_api.cc | 200 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 D | utils.js | 23 const { AsyncResource } = require('async_hooks'); 173 const reporterScope = new AsyncResource('TestReporterScope');
|
H A D | test.js | 29 const { AsyncResource } = require('async_hooks'); 203 class Test extends AsyncResource {
|