Commit b6378f0c authored by James M Snell's avatar James M Snell
Browse files

doc: stream.unshift does not reset reading state

Per https://github.com/joyent/node/issues/14604

,

Document that performing an `unshift` during a read
can have unexpected results. Following the `unshift`
with a `push('')` resets the reading state appropriately.
Also indicate that doing an `unshift` during a read
is not optimal and should be avoided.

Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
PR-URL: https://github.com/joyent/node/pull/25591
parent 5ad05af3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment