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.

Type Parameters

T

The type of message being subscribed to

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

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.