mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
Motivation: Previously, if we scheduled EventLoop executions from the promises we failed during EventLoop shutdown, we'd blow up. Thanks to @fabianfett for the bug report. Modifications: Set the EL state to 'exiting thread' only after we failed all outstanding tasks. Result: Fewer crashes. Co-authored-by: George Barnett <gbarnett@apple.com> Co-authored-by: Cory Benfield <lukasa@apple.com>