FileStream.FlushAsync(true), can it exist? #62555
-
While we can't completely become async this idea of push everything large to async is still kicking around in our codebase. On attempting one, discovered a case where FileSream.Flush(true) is called; would need an async version as that's where the actual jam is. I don't know if this even can exist. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Do you mean FileStream.FlushAsync? |
Beta Was this translation helpful? Give feedback.
-
@gfoidl: Definitely not. FileStream.Flush(true) is a special function not on stream that does not return until the block is written all the way through to the disk. |
Beta Was this translation helpful? Give feedback.
-
This was previously discussed at #28444, where @stephentoub said:
|
Beta Was this translation helpful? Give feedback.
This was previously discussed at #28444, where @stephentoub said: