Future.firstv


Description:

[ CCode ( cname = "dex_future_firstv" , has_construct_function = false ) ]
public Future.firstv (Future[] futures)

Creates a new [class@Dex.

Future] that resolves or rejects as soon as the first dependent future resolves or rejects, sharing the same result.

Parameters:

futures

an array of futures

n_futures

the number of futures

Returns:

a [class@Dex.Future]