Followup to https://github.com/quinn-rs/quinn/pull/1699. SendStream::finish as a future has proved to be a footgun, so this converts it into a synchronous method, delegating "wait until received" duties to SendStream::stopped. We expect that to rarely be required in real applications, though it does come up several times in our tests where we specifically want some data to be received before we drop a connection or take a time measurement.
Followup to https://github.com/quinn-rs/quinn/pull/1699.
SendStream::finish
as a future has proved to be a footgun, so this converts it into a synchronous method, delegating "wait until received" duties toSendStream::stopped
. We expect that to rarely be required in real applications, though it does come up several times in our tests where we specifically want some data to be received before we drop a connection or take a time measurement.