Skip to content

Commit

Permalink
remove unncessary bool return for await_suspend
Browse files Browse the repository at this point in the history
  • Loading branch information
cwharris committed Oct 27, 2023
1 parent 622fbac commit a2a0938
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/mrc/_pymrc/include/pymrc/asyncio_runnable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -98,8 +98,6 @@ class BoostFutureAwaiter
continuation.resume();
},
std::move(continuation));

return true;
}

auto await_resume() noexcept
Expand Down

0 comments on commit a2a0938

Please sign in to comment.