/
home
/
henzagold
/
oldsite
/
node_modules
/
rxjs
/
src
/
internal
/
observable
/
File Upload :
llllll
Current File: /home/henzagold/oldsite/node_modules/rxjs/src/internal/observable/fromIterable.ts
import { Observable } from '../Observable'; import { SchedulerLike } from '../types'; import { subscribeToIterable } from '../util/subscribeToIterable'; import { scheduleIterable } from '../scheduled/scheduleIterable'; export function fromIterable<T>(input: Iterable<T>, scheduler?: SchedulerLike) { if (!input) { throw new Error('Iterable cannot be null'); } if (!scheduler) { return new Observable<T>(subscribeToIterable(input)); } else { return scheduleIterable(input, scheduler); } }
Copyright ©2k19 -
Hexid
|
Tex7ure