JoiningCoroutinesDispatchList

data class JoiningCoroutinesDispatchList(val actions: List<Action>, val concurrent: Boolean) : CoThunk<Any?>

A CoThunk that dispatches actions in given order. If concurrent is false, every ForegroundJobAction is joined sequentially. If concurrent is true, actions are dispatched concurrently and execute suspends until every ForegroundJobAction is completed.

Constructors

Link copied to clipboard
fun JoiningCoroutinesDispatchList(actions: List<Action>, concurrent: Boolean)

Functions

Link copied to clipboard
open suspend override fun DispatchScope<Any?>.execute()

Properties

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
operator fun Action.plus(other: Action): DispatchList

Creates a DispatchList with this action and other. This operator automatically flattens DispatchList, so a chain of calls results in a single and flat DispatchList.