SafeConsumer

class SafeConsumer<E>(actual: Consumer<E>) : Connection<E>

Constructors

Link copied to clipboard
constructor(actual: Consumer<E>)

Functions

Link copied to clipboard
open override fun accept(value: E)

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

Link copied to clipboard
open override fun dispose()

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