diff options
Diffstat (limited to 'src/async_wrap.h')
-rw-r--r-- | src/async_wrap.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/async_wrap.h b/src/async_wrap.h index 0fe4135223..546f5130e0 100644 --- a/src/async_wrap.h +++ b/src/async_wrap.h @@ -210,6 +210,8 @@ class AsyncWrap : public BaseObject { AsyncWrap* wrap_ = nullptr; }; + bool IsDoneInitializing() const override; + private: friend class PromiseWrap; @@ -218,7 +220,8 @@ class AsyncWrap : public BaseObject { ProviderType provider, double execution_async_id, bool silent); - ProviderType provider_type_; + ProviderType provider_type_ = PROVIDER_NONE; + bool init_hook_ran_ = false; // Because the values may be Reset(), cannot be made const. double async_id_ = kInvalidAsyncId; double trigger_async_id_; |