Search results
20 packages found
Ensure a function is only called once
Use this when you have a function that creates and returns a child process, and you want that process to be killed and recreated on successive calls so that there is only one process.
Use this when you have a function that returns a promise and you want that promise to be canceled if the function is called again.
Once.js is a 0.1kb micro-library that enables you to enforce a function can only be executed once. Once.js completely dependency-free and written in both CoffeeScript and JavaScript for AMD, Node.js and the Web.
call a function oncee or many times
A micro typescript library for ensuring that a function is called only once.
Invoke a function only once
Flatten supertest
Ensure a function is only called once. This is a fork of sindresorhus/onetime, but with CommonJS support.
Guarantee a node-style async function is only executed once.
Implement of singleton mode -- call an async function only once.
the simplest way to call a function once
CJS version: Ensure a function is only called once
CommonJS version of onetime 6.0.0. See https://github.com/mifi/commonify
Efficiently use an Observer (i.e. IntersectionObserver) without the ugly observer callback. `insular-observer` gives you a simple, per-target `observe/unobserve` API that uses the same observer instance internally.
- IntersectionObserver
- ResizeObserver
- Observer
- observe
- callback
- listener
- one
- single
- element
- target
- just
- only
- better
- API
Run a function exactly one time and show stack traces when second call occurs
Wrap a function so if called multiple times, only one call runs simultaneously
fires callback when the glob/file changes
A React component that wraps children and only renders them one at a time until a given completion callback has been called by them
Execute an async function once and save the result