Future.anyv


Description:

[ CCode ( cname = "dex_future_anyv" , has_construct_function = false ) ]
public Future.anyv (Future[] futures)

Creates a new [class@Dex.

Future] that resolves when the first future resolves.

If all futures reject, then the [class@Dex.Future] returned will also reject.

Parameters:

futures

an array of futures

n_futures

the number of futures

Returns:

a [class@Dex.Future]