Socket
Book a DemoInstallSign in
Socket

@vates/coalesce-calls

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vates/coalesce-calls

Wraps an async function so that concurrent calls will be coalesced

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
83
-40.29%
Maintainers
3
Weekly downloads
 
Created
Source

@vates/coalesce-calls

Package Version License PackagePhobia Node compatibility

Wraps an async function so that concurrent calls will be coalesced

Install

Installation of the npm package:

> npm install --save @vates/coalesce-calls

Usage

import { coalesceCalls } from 'coalesce-calls'

const connect = coalesceCalls(async function () {
  // async operation
})

connect()

// the previous promise result will be returned if the operation is not
// complete yet
connect()

Contributions

Contributions are very welcomed, either on the documentation or on the code.

You may:

  • report any issue you've encountered;
  • fork and create a pull request.

License

ISC © Vates SAS

Keywords

async

FAQs

Package last updated on 29 Jun 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.