Skip to content

Scheduler isn't being called #19

@kammce

Description

@kammce

Given this coroutine:

bool print_was_called = false;

async::future<void> coro_print(async::context&)
{
  using namespace std::chrono_literals;
  std::println("Printed from a coroutine");
  co_await 100ns;
  std::println("Waited 100ns");
  print_was_called = true;
  co_await 100ns;
  std::println("Waited another 100ns");
  co_return;
}

The scheduler's schedule function is never called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions