Freigeben über


Flow.ISubscription.Cancel Method

Definition

Causes the Subscriber to (eventually) stop receiving messages.

[Android.Runtime.Register("cancel", "()V", "GetCancelHandler:Java.Util.Concurrent.Flow/ISubscriptionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void Cancel ();
[<Android.Runtime.Register("cancel", "()V", "GetCancelHandler:Java.Util.Concurrent.Flow/ISubscriptionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member Cancel : unit -> unit
Attributes

Remarks

Causes the Subscriber to (eventually) stop receiving messages. Implementation is best-effort -- additional messages may be received after invoking this method. A cancelled subscription need not ever receive an onComplete or onError signal.

Java documentation for java.util.concurrent.Flow.Subscription.cancel().

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