This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Example code for writeStream ignores that stream.write() returns a promise? #467
Closed
Description
The example code at https://github.com/wkh237/react-native-fetch-blob#file-stream completely ignores the promise returned by the write
function.
Now I wonder, if it does not matter, why return a promise? But if it matters, don't I have to wait for the promise? One, to be sure of success, two, for sequencing the writes correctly?