Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/stream_observables/mod.ts>fromTimer

A collection of observables built with ReadableStreams & friends.
Latest
function fromTimer
import { fromTimer } from "https://deno.land/x/stream_observables@v1.3/mod.ts";

Creates an observable that will forever emit null every ms milliseconds.

Parameters

ms: number

Milliseconds between each emit.

Returns

New observable that emits null values.