whatwg/streams — pull request #191 by domenic (2014-08-29 21:52:29+00:00)
Title: Update how strategies work per #189.

- Replaces `needsMore()` with `shouldApplyBackpressure()`. There is no change for underlying source authors, however: false still means "apply backpressure."
- Changes `ReadableStream`'s default strategy to have a HWM of 1, not 0. `WritableStream` is unchanged.

Some of the stuff around transform streams is currently a bit sketchy. We will re-examine after fixing #190.

This does not address the other half of #189, regarding pull() behavior. I will do that in a follow-up commit.

This caused some changes for writable stream, but they seem reasonable.