mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-22 07:25:28 -05:00
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.) |
||
|---|---|---|
| .. | ||
| crashlogger.js | ||
| dashycode.js | ||
| fs.js | ||
| process-manager.js | ||
| repl.js | ||
| streams.js | ||
| STREAMS.md | ||