Connection

interface Connection<I> : Disposable, Consumer<I>

Handle for a connection created by Connectable.

Used for sending values to the connection and to dispose of it and all resources associated with it.

Inheritors

Functions

Link copied to clipboard
abstract override fun accept(value: I)

Send a value this connection. Implementations may receive values from different threads and are thus expected to be thread-safe.

Link copied to clipboard
abstract override fun dispose()

Disconnect this connection and dispose of all resources associated with it.