mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: We have multiple reasons why flush promises weren't great, for example: - writeAndFlush sounds like it's a write + flush optimisation but in reality it was more expensive (2 extra promises) - the semantics were never quite clear - lots of implementation complexity, especially for the datagram channel Modifications: - removed the flush promises in the API - this deliberately doesn't do the PendingWritesManager simplifications that this unlocks Result: flush doesn't have a promise anymore.