From c0e70341c979582beaafa86ec3bf97ea72728340 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sat, 22 Nov 2025 12:40:00 +0100 Subject: [PATCH] Added getState() to TaskHandle for comparison. --- source/mijin/async/coroutine.hpp | 2 ++ 1 file changed, 2 insertions(+) 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