interface InputChannel<T : Any> : Channel<T>, Any
Fields
Name | Description |
---|---|
abstract available: Boolean
|
|
abstract isOver: Boolean
|
Methods
read
abstract fun read(): T?
ReturnValue
Name | Description |
---|---|
T?
|
peek
abstract fun peek(): T?
ReturnValue
Name | Description |
---|---|
T?
|
use
open fun <R> use(function: InputChannel<T>.()->R): R
Parameters
Name | Description |
---|---|
function: InputChannel<T>.()->R
|
ReturnValue
Name | Description |
---|---|
R
|
CompanionObject
InputChannel
interface InputChannel<T : Any> : Channel<T>, Any
Methods
of
fun <X : Any> of(generator: ()->X?, availabilityChecker: ()->Boolean): InputChannel<X>
Parameters
Name | Description |
---|---|
generator: ()->X?
|
|
availabilityChecker: ()->Boolean
|
ReturnValue
Name | Description |
---|---|
InputChannel<X>
|
of
fun <X : Any> of(generator: ()->X?): InputChannel<X>
Parameters
Name | Description |
---|---|
generator: ()->X?
|
ReturnValue
Name | Description |
---|---|
InputChannel<X>
|
of
fun of(string: String): InputChannel<String>
Parameters
Name | Description |
---|---|
string: String
|
ReturnValue
Name | Description |
---|---|
InputChannel<String>
|