perform
A sensible deferred library
A current work in progress, so don't use this yet
// for the sake of example, a simple log funtionvar { console; }; // so you have a deffered just like normalvar dfdA = perform;dfdA;dfdA; // and this onevar dfdB = perform;dfdB;dfdB; // and now the reveal ; dfdA;dfdB; // CONSOLE:// => Yay! The deferred resolved!// => whatever...// => All done bitches
As for arguments, you can still do a function like normal:
var dfdA = perform;dfdA;dfdA; // CONSOLE:// => hi there
Or specify stuff inline like this:
var { console;};var dfdA = perform;dfdA;dfdA; // CONSOLE:// => 100
Getting Started
Install the module with: npm install perform
Documentation
(Coming soon)
Examples
(Coming soon)
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Release History
(Nothing yet)
License
Copyright (c) 2012 Dan Heberden
Licensed under the MIT license.