mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-19 00:00:09 +02:00
- Use `Handle::default` over `Handle::current` for consistent semantics - Make all `windows::Event` constructors lazily invoke `global_init` so they can be safely constructed off-task - Don't assume the reactor is alive and event registration will be done when calling `global_init` Add windows regression tests. Unfortunately, Windows doesn't have a reliable way of programmatically sending CTRL_C or CTRL_BREAK events to a progress, so the tests can only exercise our internal machinery by invoking the handler that we register with the OS Fixes #999