[Question] `no reactor running` panics when trying to create async handlers
benjumanji opened this issue · comments
Hi all, I'm sure I'm doing something super stupid. Assuming I have some Handler X
struct X;
impl Handler for X {
fn handle(state: State) -> Pin<Box<HandlerFuture>> {
async move {
let stream UnixStream::connect(...).await?;
...
}
}
}
What do I need to do to avoid Handle::current()
panicking? I'm assuming there is a tokio reactor running somewhere, and I'd assume my futures are being run in the context of one?
I misread a dependency and was mixing tokio 0.3 and 0.2. Duh.