flush

abstract fun flush(scope: CoroutineScope): Deferred<Unit>

挂起直到缓冲区数据全部刷送到对端,不关闭通道。

Return

跟踪刷新任务的 Deferred

Parameters

scope

用于启动刷新任务的协程作用域