diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-11-03 13:28:34 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-11-06 13:57:57 +0100 |
commit | 4aca277f16b8649b5fc21d41f340fad0a47c2e61 (patch) | |
tree | d7bc9d32f1065cd8200b841d5f6d27320514edf5 /src/async_wrap.h | |
parent | d80e49d6801501a0f2b93c442d5e425ed6fc73fb (diff) | |
download | android-node-v8-4aca277f16b8649b5fc21d41f340fad0a47c2e61.tar.gz android-node-v8-4aca277f16b8649b5fc21d41f340fad0a47c2e61.tar.bz2 android-node-v8-4aca277f16b8649b5fc21d41f340fad0a47c2e61.zip |
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 2651b5a054..dd82497a25 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: |