Skip to content

Commit

Permalink
Reimplement stream backend.
Browse files Browse the repository at this point in the history
This involves:
  - Totally reimplementing stream redirection.
  - Reimplementing `consume`, `pull`, `fork`, and `resume`.

Backward incompatible;
  - The stream no longer pauses if `next` isn't synchronously called
    in
    `consume`, since this is no longer necessary to signal (lack of)
    demand to the source.
  - Lots of methods and properties that start with `_` changed
    (these
    were private anyway).
  - The callback for the stream generator and `consume` is
    guaranteed
    not to be called a second time until `next` is called.

Fixes:
  - caolan#41
  - caolan#141
  - caolan#142
  - caolan#173
  • Loading branch information
vqvu committed Nov 29, 2014
1 parent 49fc477 commit 1d074f8
Show file tree
Hide file tree
Showing 3 changed files with 618 additions and 546 deletions.
Loading

0 comments on commit 1d074f8

Please sign in to comment.