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
Runtime built with tokio::runtime::Builder panics at 'must be called from the context of Tokio runtime', however runtime built with tokio::runtime::Runtime works.
@driftluo thanks! If it's correct behaviour, then, I suggest, panic message should be changed to something like must be called from the context of Tokio runtime with task scheduler, or even better, if we are trying to run task from runtime with no scheduler: called from Tokio runtime without task scheduler.
Version
└── tokio v0.2.1
└── tokio-macros v0.2.0
Platform
19.0.0 Darwin
Subcrates
Description
Runtime
built withtokio::runtime::Builder
panics at 'must be called from the context of Tokio runtime', however runtime built withtokio::runtime::Runtime
works.This code
worked with
tokio="0.2.0-alpha.6
but now panics at 'must be called from the context of Tokio runtime'.Backtrace
However, if use
tokio::runtime::Runtime
instead oftokio::runtime::Builder
, it works 💁The text was updated successfully, but these errors were encountered: