We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Writing tasks is as easy as:
Below is an example from the “backend-example-module”
ExampleTask from the “backend-example-module”
var Class = require( 'uberclass' ) , async = require( 'async' ) , debug = require( 'debug' )( 'ExampleTask' ); var ExampleTask = module.exports = Class.extend( { init: function( callback ) { debug( ‘Starting…’ ); async.parallel([ this.proxy( ‘doSomething’ ), this.proxy( ‘doSomethingElse’) ], function(err, results){ debug( ‘Finished.’ ); callback( err ); }); }, doSomething: function( callback ) { callback( null ); }, doSomethingElse: function( callback ) { callback( null ); } });
var ExampleTask = module.exports = Class.extend( { init: function( callback ) { debug( ‘Starting…’ );
});