mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: EmbeddedChannel just treated all `write`s as flushed. That's not a good idea as all real channels obviously only actually write the bytes when flushed. This changes that behaviour for `EmbeddedChannel`. Modifications: - make `write` only write to a buffer - make `flush` then actually pretend to write the bytes Result: - EmbeddedChannel behaves more realisticly