mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +02:00
Currently, not specifying a `Handle` is different than using `Handle::default()`. This is because `Handle::default()` will immediately bind to the reactor for the current context vs. not specifying a `Handle`, which binds to a reactor when it is polled. This patch changes the `Handle::default()` behavior, bringing it inline with actual defaults. `Handle::current()` still immediately binds to the current reactor. Fixes #307