File tree 1 file changed +16
-1
lines changed
tck/src/main/java/org/reactivestreams/tck
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -789,8 +789,23 @@ public interface SubscriberProbe<T> {
789
789
* make implement these calls.
790
790
*/
791
791
public interface SubscriberPuppet {
792
+
792
793
/**
793
- * Trigger {@code request(elements)} on your {@link Subscriber}
794
+ * Ensure that at least {@code elements} are eventually requested by your {@link Subscriber}, if it hasn't already
795
+ * requested that many elements.
796
+ * <p>
797
+ * This does not necessarily have to correlate 1:1 with a {@code Subscription.request(elements)} call, but the sum
798
+ * of the elements requested by your {@code Subscriber} must eventually be at least the the sum of the elements
799
+ * triggered to be requested by all the invocations of this method.
800
+ * <p>
801
+ * Additionally, subscribers are permitted to delay requesting elements until previous requests for elements have
802
+ * been fulfilled. For example, a subscriber that only requests one element at a time may fulfill the request made
803
+ * by this method by requesting one element {@code elements} times, waiting for each element to arrive before the
804
+ * next request is made.
805
+ * <p>
806
+ * Before sending any element to the subscriber, the TCK must wait for the subscriber to request that element, and
807
+ * must be prepared for the subscriber to only request one element at a time, it is not enough for the TCK to
808
+ * simply invoke this method before sending elements.
794
809
*/
795
810
void triggerRequest (long elements );
796
811
You can’t perform that action at this time.
0 commit comments