facebookexperimental / facebookexperimental/libunifex

usage of current_scheduler inside of coroutine

Open
#216 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.7k
Forks
210
PR merge metrics
No merged PRs in 30d

Description

Is it expected that next code doesn't work?
```
timed_single_thread_context ctx;

auto makeTask = [&]() -> task {
co_return co_await via(schedule(current_scheduler), just(42));
};

sync_wait(with_query_value(makeTask(), get_scheduler, ctx.get_scheduler()));
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.