[Coroutines] Make suspend_always in test noexcept (NFC)

This commit is contained in:
Chuanqi Xu 2021-12-01 16:16:14 +08:00
parent f6ae8e8cc7
commit 3666cd0216
1 changed files with 3 additions and 3 deletions

View File

@ -67,9 +67,9 @@ template <typename Promise> struct coroutine_handle : coroutine_handle<> {
}
struct suspend_always {
bool await_ready() { return false; }
void await_suspend(coroutine_handle<>) {}
void await_resume() {}
bool await_ready() noexcept { return false; }
void await_suspend(coroutine_handle<>) noexcept {}
void await_resume() noexcept {}
};
struct suspend_never {
bool await_ready() noexcept { return true; }