Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xstream-extra-factories

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xstream-extra-factories

Extra generic factories for xstream

  • 4.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

xstream-extra-factories

Extra generic factories for xstream

forever

Creates a memory stream of a single item that never completes. Like xs.of(item) but does not send a completion event and always remembers.

fromAsyncIterable

Creates a stream from an async iterable (such as an async generator function: async function* name()).

fromCancellableDualCallback

Creates a stream from a "watch" function that expects a success callback, an error callback, any number of arguments following that, then returns an ID for cancellation. An example would be navigator.geolocation.watchPosition().

fromDualCallback

Creates a stream from a function that expects a success callback, an error callback, then any number of arguments following that. An example would be navigator.geolocation.getPosition().

fromNodeCallback

Creates a stream from a Node-style callback. A Node-style callback function takes any number of arguments and then lastly a callback of the form (error: any, value: T) => void.

FAQs

Package last updated on 11 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc