@basic-streams/later
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@basic-streams/later

later(time: number): Stream<undefined>

Creates a stream that will produce undefined after the given time in milliseconds.

import ofMany from "@basic-streams/of-many"
import later from "@basic-streams/later"

const stream = later(5000)

stream(x => {
  console.log(x)
})

// > undefined

//           undefined
// stream: ____.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @basic-streams/later

    Weekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.72 kB

    Total Files

    8

    Last publish

    Collaborators

    • pozadi