import { SchedulerLike, ReadableStreamLike } from '../types'; import { Observable } from '../Observable'; import { scheduleAsyncIterable } from './scheduleAsyncIterable'; import { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike'; export function scheduleReadableStreamLike(input: ReadableStreamLike, scheduler: SchedulerLike): Observable { return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler); }