What is the meaning of the return value of IOutputStream.FlushAsync

Method IOutputStream.FlushAsync returns expected bool. The documentation for the return value states:

Thread reset operation.

It looks, uh, vague. Can someone shed light on the details of what this really means? My assumption is that it has a yes / no value that indicates whether the flash works, say, because the implementation does not support flushing.

It is right? Most of the examples of this that I see are just waiting on FlushAsync and throwing the result. Should I pay attention to the return value and handle it somehow, even if I know that the stream will be in a file in the file system?

+4
source share
1 answer

This is just language friction, you cannot declare IAsyncOperation<void> . The GetResults () method should return something. You are only interested in Finished, you do not need a fake return value.

+2
source

All Articles