MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / CallbackScope

Class CallbackScope

napi.h:2702–2718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2700
2701#if (NAPI_VERSION > 2)
2702class CallbackScope {
2703 public:
2704 CallbackScope(napi_env env, napi_callback_scope scope);
2705 CallbackScope(napi_env env, napi_async_context context);
2706 virtual ~CallbackScope();
2707
2708 // Disallow copying to prevent double close of napi_callback_scope
2709 NAPI_DISALLOW_ASSIGN_COPY(CallbackScope)
2710
2711 operator napi_callback_scope() const;
2712
2713 Napi::Env Env() const;
2714
2715 private:
2716 napi_env _env;
2717 napi_callback_scope _scope;
2718};
2719#endif
2720
2721class AsyncContext {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected