writeWhile

abstract suspend fun writeWhile(block: (ByteBuffer) -> Boolean)

Invokes block for every free buffer until it return false. It will also suspend every time when no free space available for write.

Parameters

block

to be invoked when there is free space available for write