You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -214,8 +218,6 @@ struct awaitable : public awaitable_base {
214
218
bool coroDestroyed = false;
215
219
using value_type = T;
216
220
217
-
bool dbgValueAvailable = false;
218
-
219
221
awaitable() {}
220
222
awaitable(handle_type h) : coro(h) {
221
223
coro.promise().myRetObject = this;
@@ -234,13 +236,13 @@ struct awaitable : public awaitable_base {
234
236
}
235
237
236
238
~awaitable() {
237
-
NODECPP_ASSERT( nodecpp::module_id, ::nodecpp::assert::AssertLevel::pedantic, dbgValueAvailable, "awaitable object may not be co_await\'ed as it should be (see stack for details)" );
239
+
#ifdef NODECPP_ENABLE_CHECKING_COROUTINES_AWAITED
240
+
NODECPP_ASSERT( nodecpp::module_id, ::nodecpp::assert::AssertLevel::pedantic, immediatelyReadyOrAwaited, "awaitable object may not be co_await\'ed as it should be (see stack for details)" );
0 commit comments