UNPKG

413 BTypeScriptView Raw
1import { Event } from "./event";
2import { EventStream } from "./observable";
3/**
4 Creates a stream containing given
5 values (given as array). Delivered with given interval in milliseconds.
6
7 @param delay between elements, in milliseconds
8 @param array of values or events
9 @typeparam V Type of stream elements
10
11 */
12export default function sequentially<V>(delay: number, values: (V | Event<V>)[]): EventStream<V>;