waitFuturesAndReturnValue<V> method
Waits this Futures and return value
.
Implementation
Future<V> waitFuturesAndReturnValue<V>(V value) {
if (isEmpty) {
return Future.value(value);
} else {
return Future.wait(this).then((_) => value);
}
}