Skip to content

Commit 317593f

Browse files
committed
Merge pull request #187 from reactive-streams/wip-minor-fixes-√
Removes NumberIterablePublisher's type parameter and makes all the examp...
2 parents 82b342d + e1cb0cb commit 317593f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/src/main/java/org/reactivestreams/example/unicast/AsyncIterablePublisher.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* AsyncIterablePublisher is an implementation of Reactive Streams `Publisher`
1515
* which executes asynchronously, using a provided `Executor` and produces elements
1616
* from a given `Iterable` in a "unicast" configuration to its `Subscribers`.
17-
17+
*
1818
* NOTE: The code below uses a lot of try-catches to show the reader where exceptions can be expected, and where they are forbidden.
1919
*/
20-
class AsyncIterablePublisher<T> implements Publisher<T> {
20+
public class AsyncIterablePublisher<T> implements Publisher<T> {
2121
private final static int DEFAULT_BATCHSIZE = 1024;
2222

2323
private final Iterable<T> elements; // This is our data source / generator

examples/src/main/java/org/reactivestreams/example/unicast/InfiniteIncrementNumberPublisher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.reactivestreams.Subscriber;
88
import org.reactivestreams.Publisher;
99

10-
class InfiniteIncrementNumberPublisher extends AsyncIterablePublisher<Integer> {
10+
public class InfiniteIncrementNumberPublisher extends AsyncIterablePublisher<Integer> {
1111
public InfiniteIncrementNumberPublisher(final Executor executor) {
1212
super(new Iterable<Integer>() {
1313
@Override public Iterator<Integer> iterator() {

examples/src/main/java/org/reactivestreams/example/unicast/NumberIterablePublisher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.reactivestreams.Subscriber;
88
import org.reactivestreams.Publisher;
99

10-
class NumberIterablePublisher<T> extends AsyncIterablePublisher<Integer> {
10+
public class NumberIterablePublisher extends AsyncIterablePublisher<Integer> {
1111
public NumberIterablePublisher(final int from, final int to, final Executor executor) {
1212
super(new Iterable<Integer>() {
1313
{ if(from > to) throw new IllegalArgumentException("from must be equal or greater than to!"); }

0 commit comments

Comments
 (0)