mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-25 15:40:31 -05:00
Previously, ending a read stream was `stream.push(null)`, and ending a write stream was `stream.end()`. This was often confusing, and so now, these are consistently `stream.pushEnd()` and `stream.writeEnd()`. This refactor already found a bug in which `stream.end()` was used where `stream.push(null)` should have been. Also in this refactor: By default, `pushError` ends the stream. You can pass `true` as the second parameter if the error is recoverable (the stream shouldn't end). |
||
|---|---|---|
| .. | ||
| crashlogger.ts | ||
| DASHYCODE.md | ||
| dashycode.ts | ||
| fs.ts | ||
| net.ts | ||
| process-manager.ts | ||
| repl.ts | ||
| STREAMS.md | ||
| streams.ts | ||
| utils.ts | ||