allOfCffu

fun Collection<Cffu<*>>.allOfCffu(cffuFactory: CffuFactory = ABSENT): Cffu<Void>

Returns a new Cffu that is completed when all the given Cffus complete. If any of the given Cffu complete exceptionally, then the returned Cffu also does so, with a CompletionException holding this exception as its cause. Otherwise, the results, if any, of the given Cffus are not reflected in the returned Cffu(Cffu<Void>), but may be obtained by inspecting them individually. If no Cffus are provided, returns a Cffu completed with the value null.

This method is the same as CffuFactory.allOf, 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 Array<out Cffu<*>>.allOfCffu(cffuFactory: CffuFactory = ABSENT): Cffu<Void>

Returns a new Cffu that is completed when all the given Cffus complete. If any of the given Cffu complete exceptionally, then the returned Cffu also does so, with a CompletionException holding this exception as its cause. Otherwise, the results, if any, of the given Cffus are not reflected in the returned Cffu(Cffu<Void>), but may be obtained by inspecting them individually. If no Cffus are provided, returns a Cffu completed with the value null.

This method is the same as CffuFactory.allOf, 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 = "allOfCffuCs")
fun Collection<CompletionStage<*>>.allOfCffu(cffuFactory: CffuFactory): Cffu<Void>
fun Array<out CompletionStage<*>>.allOfCffu(cffuFactory: CffuFactory): Cffu<Void>

Returns a new Cffu that is completed when all the given stages complete. If any of the given Cffu complete exceptionally, then the returned Cffu also does so, with a CompletionException holding this exception as its cause. Otherwise, the results, if any, of the given stages are not reflected in the returned Cffu(Cffu<Void>), but may be obtained by inspecting them individually. If no stages are provided, returns a Cffu completed with the value null.

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

See also