SafeSubscriber

abstract class SafeSubscriber<T : Any> : BaseSubscriber<T> , Named

A safe subscriber that wraps message processing with error handling.

Extends BaseSubscriber to provide lifecycle hooks with logging and safe error handling for message processing.

Parameters

T

The type of message being subscribed to

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val isDisposed: Boolean
Link copied to clipboard
abstract val name: String

Functions

Link copied to clipboard
fun cancel()
Link copied to clipboard
open fun currentContext(): Context?
Link copied to clipboard
open fun dispose()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onNext(value: T?)
Link copied to clipboard
fun onSubscribe(s: Subscription?)
Link copied to clipboard
fun request(n: Long)
Link copied to clipboard
Link copied to clipboard
open fun safeOnNext(value: T)

Safely processes the next message.

Link copied to clipboard
open fun safeOnNextError(value: T, throwable: Throwable)

Handles errors that occur during message processing.