Skip to content
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

Prevent ordered_futures to swallow errors #8

Closed
wants to merge 1 commit into from

Conversation

aminmarashi
Copy link

Errors that appear in the original source before reaching the ordered_futures is swallowed because of $src_completed->done, this will use on_ready to avoid that issue.

Errors that appear in the original source before reaching the ordered_futures is swallowed because of `$src_completed->done`, this will use `on_ready` to avoid that issue.
tm604 added a commit that referenced this pull request Jan 16, 2021
    New features:

    - ->ordered_futures (->resolve) now also takes low/high parameters for backpressure

    Bugs fixed:

    - original source failure propagates after any pending Future instances are resolved,
    thanks to Amin Marashi (Github issue #8)
@tm604
Copy link
Contributor

tm604 commented Jan 16, 2021

Thanks for this. As discussed it's definitely not the right behaviour at the moment.

I ended up approaching this from a slightly different direction:

  • anything pending is allowed to complete first
  • once there's no pending item, we propagate the original stream state

This is in v2.006 - see from here for the details: v2.005...v2.006#diff-231b763a799aa30991bd3d1b87f26131fbfd0df3c5ec970d5f5dd1f0178b36aaR1221

@tm604 tm604 closed this Jan 16, 2021
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

Successfully merging this pull request may close these issues.

2 participants