Condividi tramite


SubmissionPublisher.CloseExceptionally(Throwable) Method

Definition

Unless already closed, issues Flow.Subscriber#onError(Throwable) onError signals to current subscribers with the given error, and disallows subsequent attempts to publish.

[Android.Runtime.Register("closeExceptionally", "(Ljava/lang/Throwable;)V", "GetCloseExceptionally_Ljava_lang_Throwable_Handler", ApiSince=33)]
public virtual void CloseExceptionally (Java.Lang.Throwable? error);
[<Android.Runtime.Register("closeExceptionally", "(Ljava/lang/Throwable;)V", "GetCloseExceptionally_Ljava_lang_Throwable_Handler", ApiSince=33)>]
abstract member CloseExceptionally : Java.Lang.Throwable -> unit
override this.CloseExceptionally : Java.Lang.Throwable -> unit

Parameters

error
Throwable

the onError argument sent to subscribers

Attributes

Remarks

Unless already closed, issues Flow.Subscriber#onError(Throwable) onError signals to current subscribers with the given error, and disallows subsequent attempts to publish. Future subscribers also receive the given error. Upon return, this method does <em>NOT</em> guarantee that all subscribers have yet completed.

Java documentation for java.util.concurrent.SubmissionPublisher.closeExceptionally(java.lang.Throwable).

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