%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
#include "node.h" #include "env-inl.h" namespace node { using v8::Function; using v8::Isolate; using v8::Local; using v8::MaybeLocal; using v8::Object; using v8::String; using v8::Value; AsyncResource::AsyncResource(Isolate* isolate, Local<Object> resource, const char* name, async_id trigger_async_id) : env_(Environment::GetCurrent(isolate)), resource_(isolate, resource) { CHECK_NOT_NULL(env_); async_context_ = EmitAsyncInit(isolate, resource, name, trigger_async_id); } AsyncResource::~AsyncResource() { EmitAsyncDestroy(env_, async_context_); } MaybeLocal<Value> AsyncResource::MakeCallback(Local<Function> callback, int argc, Local<Value>* argv) { return node::MakeCallback(env_->isolate(), get_resource(), callback, argc, argv, async_context_); } MaybeLocal<Value> AsyncResource::MakeCallback(const char* method, int argc, Local<Value>* argv) { return node::MakeCallback(env_->isolate(), get_resource(), method, argc, argv, async_context_); } MaybeLocal<Value> AsyncResource::MakeCallback(Local<String> symbol, int argc, Local<Value>* argv) { return node::MakeCallback(env_->isolate(), get_resource(), symbol, argc, argv, async_context_); } Local<Object> AsyncResource::get_resource() { return resource_.Get(env_->isolate()); } async_id AsyncResource::get_async_id() const { return async_context_.async_id; } async_id AsyncResource::get_trigger_async_id() const { return async_context_.trigger_async_id; } AsyncResource::CallbackScope::CallbackScope(AsyncResource* res) : node::CallbackScope(res->env_, res->resource_.Get(res->env_->isolate()), res->async_context_) {} } // namespace node