Skip to content

vcf::AsyncWriter::into_inner() missing? #210

Answered by zaeleus
holtgrewe asked this question in Q&A
Discussion options

You must be logged in to vote

If you're using a buffered async writer, you have to call flush/shutdown before the writer gets dropped. See tokio::io's "Buffered Readers and Writers":

However, you must flush BufWriter to ensure that any buffered data is written.

// ...
    } // Unless flushed or shut down, the contents of the buffer is discarded on drop.
// ...

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@zaeleus
Comment options

Answer selected by holtgrewe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants