src/Observable.php
public static function race(array $observables, SchedulerInterface $scheduler = null): Observable
    {
        if (count($observables) === 1) {
            return $observables[0];
        }

        return static::fromArray($observables, $scheduler)->lift(function () {
            return new RaceOperator();
        });
    }
public static function race(array $observables, SchedulerInterface $scheduler = null): Observable
    {
        if (count($observables) === 1) {
            return $observables[0];
        }

        return static::fromArray($observables, $scheduler)->lift(function () {
            return new RaceOperator();
        });
    }
public static function race ( array $ observables , SchedulerInterface $ scheduler = null ) : Observable { if ( count ( $ observables ) === 1 ) { return $ observables [ 0 ] ; } return static :: fromArray ( $ observables , $ scheduler ) -> lift ( function ( ) { return new RaceOperator ( ) ; } ) ; }
Propagates the observable sequence that reacts first.  Also known as 'amb'.

@param Observable[] $observables
@param SchedulerInterface $scheduler
@return Observable

@demo race/race.php
@operator
@reactivex amb
Propagates the observable sequence that reacts first . Also known as amb .