pokemon-showdown/lib
Guangcong Luo 6245b2f8fe Fix FS.writeUpdate
The old FS.writeUpdate throttle code was broken and unnecessarily
complicated. Since cancelable Promises don't exist and I was thinking
in Promises, I forgot about the existence of `clearTimeout`.

Rewriting with `clearTimeout` produces significantly more readable
code, which should no longer be bugged, and should in fact handle
complicated mixes of throttle times exactly the way I want them to
be handled.

(I rewrote this so many times in unpushed code, and each time turned
out unnecessarily complicated because I didn't remember `clearTimeout`
until now.)
2018-12-31 02:41:14 -06:00
..
crashlogger.js
dashycode.js
fs.js
process-manager.js
repl.js
streams.js
STREAMS.md