You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/28 20:46:46 UTC

[GitHub] zcoffin86 commented on issue #262: Unable to write multiple times in same file

zcoffin86 commented on issue #262: Unable to write multiple times in same file
URL: https://github.com/apache/cordova-plugin-file/issues/262#issuecomment-442598661
 
 
   Your `for(...) { setTimeout(()=>{...}, 2000)}` is just going to run all of those anonymous functions almost simultaneously; you're doing simultaneous writes to the same file instead of waiting for each previous write to finish. I'm guessing you need to do each `writeFile()` call after the previous `writeFile()` promise has been resolved.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org