Node.js  v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
AsyncResource Class Reference

#include <node.h>

Public Member Functions

 AsyncResource (v8::Isolate *isolate, v8::Local< v8::Object > resource, const char *name, async_id trigger_async_id=-1)
 
 ~AsyncResource ()
 
v8::MaybeLocal< v8::Value > MakeCallback (v8::Local< v8::Function > callback, int argc, v8::Local< v8::Value > *argv)
 
v8::MaybeLocal< v8::Value > MakeCallback (const char *method, int argc, v8::Local< v8::Value > *argv)
 
v8::MaybeLocal< v8::Value > MakeCallback (v8::Local< v8::String > symbol, int argc, v8::Local< v8::Value > *argv)
 
v8::Local< v8::Object > get_resource ()
 
 NODE_DEPRECATED ("Use AsyncResource::get_async_id()", async_id get_uid() const { return get_async_id();}) async_id get_async_id() const
 
async_id get_trigger_async_id () const
 

Detailed Description

Definition at line 667 of file node.h.

Constructor & Destructor Documentation

◆ AsyncResource()

AsyncResource ( v8::Isolate *  isolate,
v8::Local< v8::Object >  resource,
const char *  name,
async_id  trigger_async_id = -1 
)
inline

Definition at line 669 of file node.h.

◆ ~AsyncResource()

~AsyncResource ( )
inline

Definition at line 679 of file node.h.

References node::EmitAsyncDestroy().

Member Function Documentation

◆ get_resource()

v8::Local<v8::Object> get_resource ( )
inline

Definition at line 710 of file node.h.

◆ get_trigger_async_id()

async_id get_trigger_async_id ( ) const
inline

Definition at line 724 of file node.h.

◆ MakeCallback() [1/3]

v8::MaybeLocal<v8::Value> MakeCallback ( v8::Local< v8::Function >  callback,
int  argc,
v8::Local< v8::Value > *  argv 
)
inline

Definition at line 683 of file node.h.

References node::MakeCallback().

◆ MakeCallback() [2/3]

v8::MaybeLocal<v8::Value> MakeCallback ( const char *  method,
int  argc,
v8::Local< v8::Value > *  argv 
)
inline

Definition at line 692 of file node.h.

References node::MakeCallback().

◆ MakeCallback() [3/3]

v8::MaybeLocal<v8::Value> MakeCallback ( v8::Local< v8::String >  symbol,
int  argc,
v8::Local< v8::Value > *  argv 
)
inline

Definition at line 701 of file node.h.

References node::MakeCallback().

◆ NODE_DEPRECATED()

NODE_DEPRECATED ( "Use AsyncResource::get_async_id()"  ,
async_id get_uid() const { return get_async_id();}   
) const
inline

Definition at line 714 of file node.h.


The documentation for this class was generated from the following file: