Package-level declarations

Types

Link copied to clipboard

A common callback for listening for completions

Link copied to clipboard
interface Connectable
Link copied to clipboard
Link copied to clipboard
interface Emitter

Base interface for emitting signals from various sources. Note that emitters' methods must be called synchronously, never concurrently. Unlike Observer it is safe to call any methods of Emitter in any order.

Link copied to clipboard
interface ErrorCallback

A common callback for listening for exceptions

Link copied to clipboard
interface Observer

Base interface for event observers. When an Observer is subscribed to a source through its subscribe method, the source calls onSubscribe method with a Disposable that allows disposing the source at any time. All methods must be called synchronously, never concurrently.

Link copied to clipboard
interface Source<in T : Observer>

Represents a generic source that can be subscribed with an Observer

Link copied to clipboard
interface SuccessCallback<in T>

A common callback for listening for completions with a value

Link copied to clipboard
fun interface ValueCallback<in T>

A common callback for listening for values

Functions

Link copied to clipboard
operator fun <T> ValueCallback<T>.invoke(value: T)

Convenience method for ValueCallback.onNext

Link copied to clipboard
inline fun Emitter.setCancellable(crossinline cancellable: () -> Unit)
Link copied to clipboard
inline fun ErrorCallback.tryCatch(errorTransformer: (Throwable) -> Throwable = { it }, block: () -> Unit)
inline fun <T> ErrorCallback.tryCatch(block: () -> T, errorTransformer: (Throwable) -> Throwable = { it }, onSuccess: (T) -> Unit)