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

1.0.0 • Public • Published

@basic-streams/empty

empty(): Stream<never>

Creates a stream that will never produce events.

import empty from "@basic-streams/empty"

const stream = empty()

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

// no output

Readme

Keywords

Package Sidebar

Install

npm i @basic-streams/empty

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

2.88 kB

Total Files

8

Last publish

Collaborators

  • pozadi