diff --git a/source/mijin/async/coroutine.hpp b/source/mijin/async/coroutine.hpp index 3111b01..92a2a21 100644 --- a/source/mijin/async/coroutine.hpp +++ b/source/mijin/async/coroutine.hpp @@ -112,6 +112,8 @@ public: return !state_.expired(); } + [[nodiscard]] const void* getState() const MIJIN_NOEXCEPT { return state_.lock().get(); } + inline void cancel() const MIJIN_NOEXCEPT; [[nodiscard]] inline Optional getLocation() const MIJIN_NOEXCEPT; #if MIJIN_COROUTINE_ENABLE_DEBUG_INFO