I'm currently using latest stable futures and tokio and the irc code is runnin in tokio::run (so the reactor is running). One of the problems I'm facing is in this function:
I don't know how to get a handle. I tried tokio::reactor::Handle::default() but that gave me type mismatch because apparently tokio_core::reactor::Handle and tokio::reactor::Handle are not the same thing.
Ideally I think irc should provide a function that just works when run inside tokio::run. At the very least I think the documentation should say how to get a Handle to pass to this function.
I'm currently using latest stable
futures
andtokio
and theirc
code is runnin intokio::run
(so the reactor is running). One of the problems I'm facing is in this function:I don't know how to get a handle. I tried
tokio::reactor::Handle::default()
but that gave me type mismatch because apparentlytokio_core::reactor::Handle
andtokio::reactor::Handle
are not the same thing.Ideally I think
irc
should provide a function that just works when run insidetokio::run
. At the very least I think the documentation should say how to get aHandle
to pass to this function.