of

fun <T : Any> of(consumer: (T) -> Unit): OutputChannel<T>

Creates an OutputChannel delegating every write to consumer.