stream To File
suspend fun <T> Channel<T>.streamToFile(file: File, formatter: DataFormat<T>)
Content copied to clipboard
Writes the channel contents into a file, transforming the contents using a formatter
Receiver
Channel Channel object to stream
Parameters
T
Type of data inside the channel
file
File to save the channel data to
formatter
Formatter to format the channel content