Long-Running DirectoryIterator times out
Derek Cole
derek.cole at gmail.com
Mon Oct 3 22:10:49 UTC 2016
I have posted this on stackoverflow here:
http://stackoverflow.com/questions/39839752/os-file-directoryiterator-timeout-in-firefox-addon
The gist of the problem is that when I have a lot of files in the
directory, of which I am returning a OS.File.read and some other
asynchronous operations, I am noticing that with a high number of files,
the promise returned by forEach never resolves and goes to the "then()"
block after the code has run.
Does DirectoryIterator have a timeout, and if so, what is a way I can get
around this problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/firefox-dev/attachments/20161003/d4437dfc/attachment.html>
More information about the firefox-dev
mailing list