awaitAtLeast

abstract suspend fun awaitAtLeast(n: Int): Boolean

Suspend until n bytes become available or end of stream encountered (possibly due to exceptional close)

See also