You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/multi_thread/mod.rs:86:9:
Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
Right now, the setup closures return a synchronous value, not a future, disallowing setup from being async.
Additionally,
iter_batched
wraps the call tosetup
in ablock_on
call:criterion.rs/src/bencher.rs
Lines 622 to 631 in b913e23
This means that you can't use
block_on
in the closure yourself as that would create a nested runtime:Our current workaround is to use
iter_custom
instead.The text was updated successfully, but these errors were encountered: