I'm not fluent in Swift and async, but the line:
for try await byte in bytes { ... }
for me reads like the time/delta is determined for every single byte received over the network. I.e. millions of times for megabytes sent. Isn't that a point for optimization or do I misunderstand the semantics of the code?