UNPKG

307 BTypeScriptView Raw
1import { EventStream } from "./observable";
2/**
3 Creates a stream that ends after given amount of milliseconds, without emitting any values.
4
5 @param duration duration of silence in milliseconds
6 @typeparam V Type of stream elements
7 */
8export default function silence<V>(duration: number): EventStream<V>;