Search results

20 packages found

Ensure a function is only called once

published 7.0.0 7 months ago
M
Q
P

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.

published 1.1.2 7 years ago
M
Q
P

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.

published 1.0.1 7 years ago
M
Q
P

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.

published 0.0.4 10 years ago
M
Q
P

call a function oncee or many times

published 1.0.2 10 years ago
M
Q
P

A micro typescript library for ensuring that a function is called only once.

published 1.0.1 5 years ago
M
Q
P

Invoke a function only once

published 1.1.0 6 years ago
M
Q
P

Flatten supertest

published 0.0.0 10 years ago
M
Q
P

Ensure a function is only called once. This is a fork of sindresorhus/onetime, but with CommonJS support.

published 6.0.1-cjs.0 2 years ago
M
Q
P

Guarantee a node-style async function is only executed once.

published 2.0.0 2 years ago
M
Q
P

Implement of singleton mode -- call an async function only once.

published 2.0.7 5 years ago
M
Q
P

the simplest way to call a function once

published 2.0.1 8 years ago
M
Q
P

CJS version: Ensure a function is only called once

published 6.0.0 2 years ago
M
Q
P

CommonJS version of onetime 6.0.0. See https://github.com/mifi/commonify

published 6.0.0 2 years ago
M
Q
P

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.

published 0.1.1 4 years ago
M
Q
P

Run a function exactly one time and show stack traces when second call occurs

published 1.4.1 7 years ago
M
Q
P

Wrap a function so if called multiple times, only one call runs simultaneously

published 1.1.0 4 years ago
M
Q
P

fires callback when the glob/file changes

published 1.0.0 9 years ago
M
Q
P

A React component that wraps children and only renders them one at a time until a given completion callback has been called by them

published 1.0.5 3 years ago
M
Q
P

Execute an async function once and save the result

published 0.1.0 8 years ago
M
Q
P