[ 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.
| futures |
an array of futures |
| n_futures |
the number of futures |
|
a [class@Dex.Future] |