Skip to content

Question about error/completion contract with streams #615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3n-mb opened this issue Oct 17, 2017 · 2 comments
Closed

Question about error/completion contract with streams #615

3n-mb opened this issue Oct 17, 2017 · 2 comments

Comments

@3n-mb
Copy link

3n-mb commented Oct 17, 2017

Observables are commonly done to fulfill this contract
Do Stream's adhere to it? And if not, it which point is it different?

  1. Error or completion may happen only once. No more events expected, after one of these happens. Do Stream's act this way?
  2. If we have a chain stream.op1(...).op2(...).op3(...), and let's assume there is a parallel execution at points 1 and 3, when error happens at 3. Execution in 1 may not be stopped, its fine. But, when execution at 1 is done, will result go into point 2, to start execution there, or, will the stream flow be stopped?
@3n-mb
Copy link
Author

3n-mb commented Oct 17, 2017

It seems, from #206 that errors don't close stream.
The question is then, when v0.2 with proper behaviour is expected?

@alexcrichton
Copy link
Member

Thanks for the report! I believe this does indeed fall under #206 which is planned for the 0.2 release, so I'm going to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants