akarnokd / akarnokd/RxJavaExtensions

Add indexed transform operator to ParallelFlowable

Open
#74 0 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Java
Stars
680
Forks
50
Avg merge
16m
Merged PRs (30d)
9

Description

Signature:

```java
ParallelTransformer transformRail(BiFunction, Integer, Publisher 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 `Flowable`s 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.