Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
enum Print : Enum<Print>

Functions

Link copied to clipboard
@ExperimentalCoroutinesApi
fun consoleIn(dispatcher: CoroutineDispatcher = Dispatchers.IO.limitedParallelism(1)): Flow<String>

Creates a flow of strings read from the console input (stdin) using the specified dispatcher.

Link copied to clipboard
@ExperimentalCoroutinesApi
fun <T : Any> Flow<T>.consoleOut(dispatcher: CoroutineDispatcher = Dispatchers.IO.limitedParallelism(1), print: Print = Print.BREAK_LINE, mapper: suspend (T) -> Pair<Any, OutType> = { it to OutType.DEFAULT }): Flow<Pair<Any, OutType>>

Outputs the flow of objects to the console (stdout or stderr) using the specified dispatcher, print, and mapper.