From 1ecef319d7c8a07073fb37c3b88e3ccce8c94c97 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sat, 25 Jun 2022 19:30:03 -0700 Subject: Remove aisa::suspend() which was trivial. --- aisa/coroutine.h | 2 -- aisa/eval.h | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aisa/coroutine.h b/aisa/coroutine.h index 40a6982..a456c89 100644 --- a/aisa/coroutine.h +++ b/aisa/coroutine.h @@ -4,8 +4,6 @@ namespace aisa { - inline auto suspend() noexcept { return std::suspend_always{}; } - template struct promise; template struct task : public std::coroutine_handle> { diff --git a/aisa/eval.h b/aisa/eval.h index f97740c..6d65520 100644 --- a/aisa/eval.h +++ b/aisa/eval.h @@ -1,5 +1,7 @@ #pragma once +#include + #include "aisa/aisa.h" namespace aisa { @@ -12,7 +14,7 @@ namespace aisa { while (true) { if (auto rv = crtp().load_reg(rn); rv.has_value()) co_return *rv; - co_await suspend(); + co_await std::suspend_always{}; } } @@ -21,7 +23,7 @@ namespace aisa { while (true) { if (crtp().store_reg(rn, rv)) co_return; - co_await suspend(); + co_await std::suspend_always{}; } } -- cgit v1.2.3