Companion

object Companion

Functions

Link copied to clipboard
fun <T> callback(capture: Capture<T> = void(), callback: (T) -> Unit): Capture<T>

Creates a Capture that calls callback on each element and stores values in capture (by default it is void).

Link copied to clipboard

Creates a Capture that is able to store multiple values.

Link copied to clipboard
fun <T> slot(): SlotCapture<T>

Creates a SlotCapture implementation.

Link copied to clipboard
fun <T> void(): Capture<T>

Creates a Capture that ignores incoming values.