Package space.kscience.kmath.coroutines

Types

AsyncFlow
Link copied to clipboard
common
class AsyncFlow<out T> : Flow<T>

Functions

async
Link copied to clipboard
common
inline fun <T, R> Flow<T>.async(dispatcher: CoroutineDispatcher = Dispatchers.Default, crossinline block: suspend CoroutineScope.(T) -> R): AsyncFlow<R>
collect
Link copied to clipboard
common
inline suspend fun <T> AsyncFlow<T>.collect(concurrency: Int, crossinline action: suspend (T) -> Unit)
suspend fun <T> AsyncFlow<T>.collect(concurrency: Int, collector: FlowCollector<T>)
map
Link copied to clipboard
common
inline fun <T, R> AsyncFlow<T>.map(crossinline action: (T) -> R): AsyncFlow<R>
mapParallel
Link copied to clipboard
common
inline fun <T, R> Flow<T>.mapParallel(dispatcher: CoroutineDispatcher = Dispatchers.Default, crossinline transform: suspend (T) -> R): Flow<R>

Properties

Math
Link copied to clipboard
common
val Dispatchers.Math: CoroutineDispatcher