readAll

open fun readAll(block: Boolean = true, limit: Int = 0): List<String>

Read out all lines up to a limit if given a limit greater than zero.

Return

Empty list if no lines are available and blocking is disabled. List of at least one string if blocking is allowed.

Parameters

block

Whether to wait until at least one line is available before returning.

Sources

jvm source
Link copied to clipboard