write

fun write(obj: T)

Writes an object to this channel.

This is an alias for put that may be more intuitive in some contexts.

Parameters

obj

The object to write to the channel