allResultsOfCffu

fun <T> Collection<Cffu<out T>>.allResultsOfCffu(cffuFactory: CffuFactory = ABSENT): Cffu<List<T>>

Returns a new Cffu with the results in the same order of the given Cffus arguments, the new Cffu is completed when all the given Cffus complete. If any of the given Cffus complete exceptionally, then the returned Cffu also does so, with a CompletionException holding this exception as its cause. If no Cffus are provided, returns a Cffu completed with the value empty list.

This method is the same as allOfCffu, except the returned Cffu contains the results of input Cffus.

This method is the same as CffuFactory.allResultsOf, providing this method is convenient for method chaining.

If this collection is not empty, cffuFactory argument is optional, use the cffuFactory of the first cffu element. If this collection is empty and nocffuFactory provided, throw IllegalArgumentException.

See also


fun <T> Array<out Cffu<out T>>.allResultsOfCffu(cffuFactory: CffuFactory = ABSENT): Cffu<List<T>>

Returns a new Cffu with the results in the same order of the given Cffus arguments, the new Cffu is completed when all the given Cffus complete. If any of the given Cffus complete exceptionally, then the returned Cffu also does so, with a CompletionException holding this exception as its cause. If no Cffus are provided, returns a Cffu completed with the value empty list.

This method is the same as allOfCffu, except the returned Cffu contains the results of input Cffus.

This method is the same as CffuFactory.allResultsOf, providing this method is convenient for method chaining.

If this array is not empty, cffuFactory argument is optional, use the cffuFactory of the first cffu element. If this array is empty and nocffuFactory provided, throw IllegalArgumentException.

See also


@JvmName(name = "allResultsOfCffuCs")
fun <T> Collection<CompletionStage<out T>>.allResultsOfCffu(cffuFactory: CffuFactory): Cffu<List<T>>
fun <T> Array<out CompletionStage<out T>>.allResultsOfCffu(cffuFactory: CffuFactory): Cffu<List<T>>

Returns a new Cffu with the results in the same order of the given stages arguments, the new Cffu is completed when all the given stages complete. If any of the given stages complete exceptionally, then the returned Cffu also does so, with a CompletionException holding this exception as its cause. If no stages are provided, returns a Cffu completed with the value empty list.

This method is the same as allOfCffu, except the returned Cffu contains the results of input stages.

This method is the same as CffuFactory.allResultsOf, providing this method is convenient for method chaining.

See also