qisdk / com.aldebaran.qi.sdk.util / FutureUtils / zip

zip

open static fun <T : Any!> zip(vararg futures: Future<T>!): Future<MutableList<T>!>!

Returns a future that transform a list of future into a future of list

Parameters

futures - Future<T>!: the list of futures

- the type of return

Return
Future<MutableList<T>!>!: a future of all elements

open static fun <T : Any!> zip(futures: MutableList<Future<T>!>!): Future<MutableList<T>!>!

Returns a future that transform a list of future into a future of list

Parameters

futures - MutableList<Future<T>!>!: the list of futures

- the type of return

Return
Future<MutableList<T>!>!: a future of all elements