mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
Motiviation: When the Selector is closed we also close the registered Channels and notify the future once all the close operations complete. The problem here is that while the close operation may be complete already there may still be events flowing through the ChannelPipeline. The only way to ensure this not happens anymore is to take the closeFuture into account of each Channel (as the closeFuture will only be notified once all is done for a Channel). Modification: - Also take the closeFuture into account per Channel - Add test Result: Safer shutdown of EventLoopGroup.