Don't unnecessarily create async blocks
If our expression directly evaluates to a future, we don't need to create an async block. This requires us to have `EventLoopRun::run` consume the instance instead of just taking a mutable reference (otherwise we run into lifetime issues). However, that is better anyway because `run` is an endless loop so you never get to use the handle afterwards anyway.pull/264/head
parent
a4c25080b6
commit
54bc91581f
Loading…
Reference in New Issue