import * as T from "../../../../Effect";
import * as SC from "../../../../Schedule";
import * as RepeatEffectOption from "./repeatEffectOption";
import * as Unwrap from "./unwrap";
/**
 * Creates a stream from a `Schedule` that does not require any further
 * input. The stream will emit an element for each value output from the
 * schedule, continuing for as long as the schedule continues.
 */

export function fromSchedule(schedule) {
  return Unwrap.unwrap(T.map_(SC.driver(schedule), driver => RepeatEffectOption.repeatEffectOption(driver.next(undefined))));
}
//# sourceMappingURL=fromSchedule.js.map