mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-17 10:46:53 -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). |
||
|---|---|---|
| .. | ||
| exhaustive-runner.ts | ||
| multi-random-runner.ts | ||
| random-player-ai.ts | ||
| runner.ts | ||