mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
Motivation: It's illegal to shut down a SelectableEventLoop because the only valid owner is a MultiThreadedEventLoopGroup which never uses shutdownGracefully on its EventLoops. Modifications: Fail shutdown attempts instead of running some random, untested code. Result: Fail illegal calls rather than running some dangerous code which will lead to deadlocks further down the line.