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

Add indexed transform operator to ParallelFlowable #74

Open
akarnokd opened this issue Aug 6, 2020 · 0 comments
Open

Add indexed transform operator to ParallelFlowable #74

akarnokd opened this issue Aug 6, 2020 · 0 comments

Comments

@akarnokd
Copy link
Owner

akarnokd commented Aug 6, 2020

Signature:

ParallelTransformer<T, R> transformRail(BiFunction<Flowable<T>, Integer, Publisher<R> mapper)

Given the parallelism of the ParallelFlowable, the function will be called for each rail indexed 0..n-1 to provide a mapping for that particular rail.

Considerations:

  • The input Flowables will be single-subscriber only.
  • The implementation should not buffer but has to be careful when relaying signals because:
    • the returned Publisher may not be connected to the input Flowable for a time or at all.
    • the input Flowable may terminate before the downstream gets to subscribing to it.

See also https://github.com/akarnokd/RxJavaMicroprofileRS/blob/master/src/main/java/hu/akarnokd/rxjava3/mprs/DeferredProcessor.java

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

No branches or pull requests

1 participant