芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/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
(input: Iterable
, scheduler?: SchedulerLike) { if (!input) { throw new Error('Iterable cannot be null'); } if (!scheduler) { return new Observable
(subscribeToIterable(input)); } else { return scheduleIterable(input, scheduler); } }