lib/informer.js
function wait(type) {

		var that = this,
		    config = this.asyncConfig;

		if (type !== 'series') {
			type = 'parallel';
		}

		// Indicate we're going to have to wait
		config.async = type;

		function next(err) {
			config.err = err;
			config.ListenerIsDone = true;

			if (config.ListenerCallback) {
				config.ListenerCallback(err);
			}
		};

		return next;
	}
function wait(type) {

		var that = this,
		    config = this.asyncConfig;

		if (type !== 'series') {
			type = 'parallel';
		}

		// Indicate we're going to have to wait
		config.async = type;

		function next(err) {
			config.err = err;
			config.ListenerIsDone = true;

			if (config.ListenerCallback) {
				config.ListenerCallback(err);
			}
		};

		return next;
	}
function wait ( type ) { var that = this , config = this . asyncConfig ; if ( type !== 'series' ) { type = 'parallel' ; } // Indicate we're going to have to wait config . async = type ; function next ( err ) { config . err = err ; config . ListenerIsDone = true ; if ( config . ListenerCallback ) { config . ListenerCallback ( err ) ; } } ; return next ; }
A method to indicate we have to wait for it to finish,
because it is asynchronous.

@author   Jelle De Loecker   <jelle@develry.be>
@since    0.1.3
@version  0.1.4

@return   {Function}   The function to call when done
A method to indicate we have to wait for it to finish because it is asynchronous .