open class BufferingResumableCollector<T> : Resumable
A collector that can buffer a fixed number of items and drain it with much less need to coordinate the resumption per items.
BufferingResumableCollector(capacity: Int)
A collector that can buffer a fixed number of items and drain it with much less need to coordinate the resumption per items. |
fun complete(): Unit |
|
suspend fun drain(collector: FlowCollector<T>, onCrash: (BufferingResumableCollector<T>) -> Unit = null): Unit |
|
fun error(ex: Throwable): Unit |
|
suspend fun next(value: T): Unit |
suspend fun await(): Unit
Await the resumption of this Resumable, suspending the current coroutine if necessary. Only one thread can call this method. |
|
fun resume(): Unit
Resume this Resumable, resuming any currently suspended await callers. This method can be called by any number of threads. |