Added getState() to TaskHandle for comparison.

This commit is contained in:
Patrick Wuttke
2025-11-22 12:40:00 +01:00
parent c54a87c90e
commit c0e70341c9

View File

@@ -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<std::source_location> getLocation() const MIJIN_NOEXCEPT;
#if MIJIN_COROUTINE_ENABLE_DEBUG_INFO