facebookexperimental / facebookexperimental/libunifex
usage of current_scheduler inside of coroutine
Open
- 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
Assessment
This issue has not been assessed yet.