mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-25 04:47:50 +00:00
Motivation: Sometimes when you have a hammer everything looks like a nail. In this case, my hammer was Futures. But we don't need to use a Future here: these two classes are tightly coupled, and so we can safely just call from one to the other. A side note: while this appears to create a reference cycle, the act of calling the function in question will actually break that cycle. So it's all good! Modifications: - Remove a future callback. - Have the stream channel hold a reference to the multiplexer. Result: Fewer heap allocations.