Companion

object Companion

Functions

Link copied to clipboard
fun <X : Any> of(generator: () -> X?): InputChannel<X>

Same as the two-argument of, but always reports available as true.

Creates an InputChannel that yields string, one character at a time.

fun <X : Any> of(generator: () -> X?, availabilityChecker: () -> Boolean): InputChannel<X>

Creates an InputChannel producing elements from generator (returning null when exhausted), whose available reflects availabilityChecker.

Link copied to clipboard

The platform-specific standard input channel (System.in on the JVM; unsupported on JS, see Channels.kt).

Link copied to clipboard

Builds the $stream(in, Id) Struct term identifying an input channel, given its optional id.