write

suspend fun write(data: T): Result<Unit>

Write to the stream.