From a2a093844dc834c21127886a1a55c257424589aa Mon Sep 17 00:00:00 2001 From: Christopher Harris Date: Fri, 27 Oct 2023 17:14:31 +0000 Subject: [PATCH] remove unncessary bool return for await_suspend --- python/mrc/_pymrc/include/pymrc/asyncio_runnable.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/mrc/_pymrc/include/pymrc/asyncio_runnable.hpp b/python/mrc/_pymrc/include/pymrc/asyncio_runnable.hpp index baeb82a8b..fb11a332b 100644 --- a/python/mrc/_pymrc/include/pymrc/asyncio_runnable.hpp +++ b/python/mrc/_pymrc/include/pymrc/asyncio_runnable.hpp @@ -85,7 +85,7 @@ class BoostFutureAwaiter return false; } - bool await_suspend(std::coroutine_handle<> continuation) noexcept + void await_suspend(std::coroutine_handle<> continuation) noexcept { // Launch a new fiber that waits on the future and then resumes the coroutine boost::fibers::async( @@ -98,8 +98,6 @@ class BoostFutureAwaiter continuation.resume(); }, std::move(continuation)); - - return true; } auto await_resume() noexcept