race<T> function
Creates an Observable that mirrors the first source to emit an item.
Implementation
Observable<T> race<T>(Iterable<Observable<T>> sources) {
final observables = sources.toList(growable: false);
return observables.isEmpty
? empty()
: observables.length == 1
? observables.first
: RaceObservable<T>(observables);
}