Skip to content

Commit

Permalink
remove unncessary yield in main task of asynciorunnable
Browse files Browse the repository at this point in the history
  • Loading branch information
cwharris committed Nov 3, 2023
1 parent 695e69e commit 8e8027d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/mrc/_pymrc/include/pymrc/asyncio_runnable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,6 @@ void AsyncioRunnable<InputT, OutputT>::run(mrc::runnable::Context& ctx)
template <typename InputT, typename OutputT>
coroutines::Task<> AsyncioRunnable<InputT, OutputT>::main_task(std::shared_ptr<mrc::coroutines::Scheduler> scheduler)
{
co_await scheduler->yield();

coroutines::TaskContainer outstanding_tasks(scheduler);

ExceptionCatcher catcher{};
Expand Down

0 comments on commit 8e8027d

Please sign in to comment.