Kotlin: Stream.awaitWrite()
DESCRIPTION
Write bytes to a stream.
This is meant to be used in a Kotlin coroutine to suspend execution until the bytes have been written.
DECLARATION
suspend fun Stream.awaitWrite(
bytes: ByteArray,
)
PARAMETERS
bytes:
- Byte array to be written to the stream.