This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

aonce

0.1.0 • Public • Published

aonce

Run an async function once, no matter how many times it's called.

Example

var init = aonce(function(cb) {
	// Do some initialization
	results = {};
	cb(results);
});

// Later:

init(function(results) {
	// do something with results
});

// Elsewhere:

init(function(results) {
	// do something else with results
});

Readme

Keywords

none

Package Sidebar

Install

npm i aonce

Weekly Downloads

0

Version

0.1.0

License

none

Last publish

Collaborators

  • sidnicious