sendFiles

fun sendFiles(coroutineContext: CoroutineContext = sendingFilesContext): Deferred<Unit>

Initiates the process of sending files using the provided executor.

This method submits each file for sending to the fileStreamExecutor and wait for completion.

Parameters

fileStreamExecutor

the executor service responsible for executing file sending tasks

Throws

If the stream is not in the State.PREPARED state