SafeConnectable

class SafeConnectable<F, E>(actual: Connectable<F, E>) : Connectable<F, E>

A Connectable that ensures that an inner Connection doesn't emit or receive any values after being disposed.

This only acts as a safeguard, you still need to make sure that the Connectable disposes of resources correctly.

Constructors

Link copied to clipboard
constructor(actual: Connectable<F, E>)

Types

Link copied to clipboard
class SafeConsumer<E>(actual: Consumer<E>) : Connection<E>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun connect(output: Consumer<E>): Connection<F>

Create a new connection that accepts input values and sends outgoing values to a supplied consumer.