Add flush to ByteStream code example in docs (#1005)
In the examples on how to copy a ByterStream to a file flush is not called explicitly. A user copying this code may hit some race condition as the flush will happen asynchronously. This deviates from the std file implementation that flushes on drop and may be confusing if not explicitly stated in the example.
Loading
Please register or sign in to comment