Skip to content
Unverified Commit 56cf68a8 authored by Javier Cano's avatar Javier Cano Committed by GitHub
Browse files

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.
parent 6326a069
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment