itinance/react-native-fs

React-native fs stops other async functions to execute until the file downloads

オープン

#251 opened on 2017/02/09

 (27 件のコメント) (1 件のリアクション) (0 人の担当者)C++ (1,012 件のフォーク)batch import
discussionenhancementhelp wanted

Repository metrics

Stars
 (5,043 個のスター)
PR merge metrics
 (PR metrics pending)

説明

I am using react-native fs to download the file. The react-native fs uses promises, so until the promise is returned back it keeps other async functions in a queue to execute. For instance, If i start downloading a file then other async functions(such as getting data from local storage) gets blocked. The other async function starts executing only when the download is complete.

any help would be appreciated.

コントリビューターガイド