diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-11-03 15:28:34 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2019-11-17 10:59:08 +0300 |
commit | 0072a8eddfe4bb444856c1aea09ed72bf6d359d5 (patch) | |
tree | 3cc9e79c80f9c7fd206d40a8f4dba6a0cdf2d590 /src/async_wrap.h | |
parent | e3371f0c93b7f3fa66381aad393cc4b5eb9b9dca (diff) |
src: remove AsyncScope and AsyncCallbackScope
Reduce the number of different scopes we use for async callbacks.
PR-URL: https://github.com/nodejs/node/pull/30236
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/async_wrap.h')
-rw-r--r-- | src/async_wrap.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/async_wrap.h b/src/async_wrap.h index 2651b5a054d..dd82497a259 100644 --- a/src/async_wrap.h +++ b/src/async_wrap.h @@ -162,7 +162,6 @@ class AsyncWrap : public BaseObject { inline ProviderType set_provider_type(ProviderType provider); inline double get_async_id() const; - inline double get_trigger_async_id() const; void AsyncReset(v8::Local<v8::Object> resource, @@ -200,18 +199,6 @@ class AsyncWrap : public BaseObject { static v8::Local<v8::Object> GetOwner(Environment* env, v8::Local<v8::Object> obj); - // This is a simplified version of InternalCallbackScope that only runs - // the `before` and `after` hooks. Only use it when not actually calling - // back into JS; otherwise, use InternalCallbackScope. - class AsyncScope { - public: - explicit inline AsyncScope(AsyncWrap* wrap); - ~AsyncScope(); - - private: - AsyncWrap* wrap_ = nullptr; - }; - bool IsDoneInitializing() const override; private: |