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/eval.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'aisa/eval.h') 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