mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Motivation: We can remove a promise allocation in Selector.closeGently if there are still Channels registered and also simplify the code a bit. Modifications: Remove creation of promise and just use eventLoop.new*Future(...) when needed. Result: Less allocations and cleaner code.