import { raceInit } from '../observable/race.js';
import { Observable } from '../Observable.js';
import { identity } from '../util/identity.js';
export function raceWith(...otherSources) {
    return !otherSources.length
        ? identity
        : (source) => new Observable((subscriber) => {
            raceInit([source, ...otherSources])(subscriber);
        });
}//# sourceMappingURL=http://go/sourcemap/sourcemaps/cd1c87ff9b66021918fb9731605f8d1d5fd2f0b0/node_modules/rxjs/dist/esm/internal/operators/raceWith.js.map