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
If this crate is used by another which either defers initialization on the tokio runtime, or does not use one at all, it panics. It does this during the invocation .spawn_signal_handler() .
Workaround
Spawn a tokio runtime using the tokio::main proc macro or using tokio::runtime::Builder.
The text was updated successfully, but these errors were encountered:
dmgolembiowski
changed the title
Bug: thread 'main' panicked without tokio runtime
Feature: thread 'main' panicked without tokio runtime
May 21, 2023
Renaming this as a feature request since it operates perfectly within the intended context; otherwise, to use it outside of tokio like in async-std frameworks, this crate can be minimally prohibitive.
TL;DR
If this crate is used by another which either defers initialization on the tokio runtime, or does not use one at all, it panics. It does this during the invocation
.spawn_signal_handler()
.Workaround
Spawn a tokio runtime using the
tokio::main
proc macro or usingtokio::runtime::Builder
.The text was updated successfully, but these errors were encountered: