src/benchmark/context.cpp
// Switches to the current context (suspends execution).
Switches to the current context (suspends execution).
Switches to the current context ( suspends execution ) .
static void context_append(benchmark::State& state) noexcept
{
  ice::context c0;
  auto co = [&]() -> ice::sync<void> {
    for (auto _ : state) {
      co_await ice::schedule(c0, true);
    }
    c0.stop();
  }();
  c0.run();
  co.get();
}
static void context_append ( benchmark :: State & state ) noexcept { ice :: context c0 ; auto co = [ & ] ( ) -> ice :: sync < void > { for ( auto _ : state ) { co_await ice :: schedule ( c0 , true ) ; } c0 . stop ( ) ; } ( ) ; c0 . run ( ) ; co . get ( ) ; }
Switches to the current context (suspends execution).
Switches to the current context ( suspends execution ) .