Skip to content

Commit 0f303a8

Browse files
Document Subscriber#onNext invocation order
1 parent 14002f6 commit 0f303a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/dataloader/BatchPublisher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
* the future returned by {@link DataLoader#load(Object)} to complete as soon as the individual value is available
1212
* (rather than when all values have been retrieved).
1313
* <p>
14-
* It is required that values be returned in the same order as the keys provided.
14+
* <b>NOTE:</b> It is <b>required </b> that {@link Subscriber#onNext(V)} is invoked on each value in the same order as
15+
* the provided keys.
1516
*
1617
* @param <K> type parameter indicating the type of keys to use for data load requests.
1718
* @param <V> type parameter indicating the type of values returned

0 commit comments

Comments
 (0)