InputChannel

interface InputChannel<T> : Channel<T>, Any

Fields

Name Description
abstract available: Boolean

Methods

read

abstract fun read(): T

ReturnValue

Name Description
T

CompanionObject

InputChannel

interface InputChannel<T> : Channel<T>, Any

Methods

stdIn

fun stdIn(): InputChannel<String>

ReturnValue

Name Description
InputChannel<String>

of

fun <T> of(generator: ()->T, availabilityChecker: ()->Boolean): InputChannel<T>

Parameters

Name Description
generator: ()->T
availabilityChecker: ()->Boolean

ReturnValue

Name Description
InputChannel<T>

of

fun <T> of(generator: ()->T): InputChannel<T>

Parameters

Name Description
generator: ()->T

ReturnValue

Name Description
InputChannel<T>