completeAll

infix fun <T> List<CompletableDeferred<T>>.completeAll(values: List<T>): Boolean

Completes all the CompletableDeferred objects in the list with the corresponding values from the values list.

Return

A Boolean indicating if all the CompletableDeferred objects were completed successfully.

Parameters

values

A list of values to complete the CompletableDeferred objects with.

Throws

if the sizes of the lists don't match.