Freigeben über


Flow.ISubscription.Request(Int64) Method

Definition

Adds the given number n of items to the current unfulfilled demand for this subscription.

[Android.Runtime.Register("request", "(J)V", "GetRequest_JHandler:Java.Util.Concurrent.Flow/ISubscriptionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void Request (long n);
[<Android.Runtime.Register("request", "(J)V", "GetRequest_JHandler:Java.Util.Concurrent.Flow/ISubscriptionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member Request : int64 -> unit

Parameters

n
Int64

the increment of demand; a value of Long.MAX_VALUE may be considered as effectively unbounded

Attributes

Remarks

Adds the given number n of items to the current unfulfilled demand for this subscription. If n is less than or equal to zero, the Subscriber will receive an onError signal with an IllegalArgumentException argument. Otherwise, the Subscriber will receive up to n additional onNext invocations (or fewer if terminated).

Java documentation for java.util.concurrent.Flow.Subscription.request(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to