examples/example.js
function() {
	var deferred = q.defer();
	setTimeout(function() {
		console.log("Async Action 1 Completed");
		deferred.resolve();
	}, 1000);
	return deferred.promise;
}
function() {
	var deferred = q.defer();
	setTimeout(function() {
		console.log("Async Action 1 Completed");
		deferred.resolve();
	}, 1000);
	return deferred.promise;
}
function ( ) { var deferred = q . defer ( ) ; setTimeout ( function ( ) { console . log ( "Async Action 1 Completed" ) ; deferred . resolve ( ) ; } , 1000 ) ; return deferred . promise ; }
Adding Async Named Function
Adding Async Named Function