You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-12
Original file line number
Diff line number
Diff line change
@@ -572,7 +572,7 @@ try {
572
572
The custom transformers (to be applied with `Flowable.compose` for example), can be found in `hu.akarnokd.rxjava2.operators.FlowableTransformers` class. The custom source-like operators can be found in `hu.akarnokd.rxjava2.operators.Flowables` class. The operators and transformers for the other base
573
573
reactive classes (will) follow the usual naming scheme.
574
574
575
-
### FlowableTransflormers.valve
575
+
### FlowableTransflormers.valve()
576
576
577
577
Pauses and resumes a main flow if the secondary flow signals false and true respectively.
578
578
@@ -602,7 +602,7 @@ valveSource.onNext(true);
602
602
Thread.sleep(3000);
603
603
```
604
604
605
-
### Flowables.orderedMerge
605
+
### Flowables.orderedMerge()
606
606
607
607
Given a fixed number of input sources (which can be self-comparable or given a `Comparator`) merges them
608
608
into a single stream by repeatedly picking the smallest one from each source until all of them completes.
Inserts a time delay between emissions from the upstream. For example, if the upstream emits 1, 2, 3 in a quick succession, a spanout(1, TimeUnit.SECONDS) will emit 1 immediately, 2 after a second and 3 after a second after 2.You can specify the initial delay, a custom scheduler and if an upstream error should be delayed after the normal items or not.
668
668
@@ -675,7 +675,7 @@ Flowable.range(1, 10)
675
675
.assertResult(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
676
676
```
677
677
678
-
### FlowableTransformers.mapFilter
678
+
### FlowableTransformers.mapFilter()
679
679
680
680
A callback `Consumer` is called with the current upstream value and a `BasicEmitter` on which doXXX methods can be called
681
681
to transform a value, signal an error or stop a sequence. If none of the `doXXX` methods is called, the current value is dropped and another is requested from upstream. The operator is a pass-through for downstream requests otherwise.
@@ -694,7 +694,7 @@ Flowable.range(1, 10)
694
694
.assertResult(4, 8);
695
695
```
696
696
697
-
### FlowableTransformers.onBackpressureTimeout
697
+
### FlowableTransformers.onBackpressureTimeout()
698
698
699
699
Consumes the upstream in an unbounded manner and buffers elements until the downstream requests but each buffered element has an associated timeout after which it becomes unavailable. Note that this may create discontinuities in the stream. In addition, an overload allows specifying the maximum buffer size and an eviction action which gets triggered when the buffer reaches its
Repeats a scalar value indefinitely (until the downstream actually cancels), honoring backpressure and supporting synchronous fusion and/or conditional fusion.
Repeatedly calls a callable, indefinitely (until the downstream actually cancels) or if the callable throws or returns null (when it signals `NullPointerException`), honoring backpressure and supporting synchronous fusion and/or conditional fusion.
This is a combination of switchMap and a limited flatMap. It merges a maximum number of Publishers at once but if a new inner Publisher gets mapped in and the active count is at max, the oldest active Publisher is cancelled and the new inner Publisher gets flattened as well. Running with `maxActive == 1` is equivalent to the plain `switchMap`.
0 commit comments