tokio-rs / tokio-core

I/O primitives and event loop for async I/O in Rust
Apache License 2.0
640 stars 115 forks source link

Set execution context for `Core::run` future. #314

Closed carllerche closed 6 years ago

carllerche commented 6 years ago

This patch correctly sets up the execution context for the future passed to Core::run. This enables calling tokio::spawn from this future.

Fixes #313