示例#1
0
exports.failLater = function() {
	return promise.delay( 500 ).then( function() { throw Error( "Failed!" ); } );
}
SnakeCaseController.prototype.test = function(){
    return promise.delay(1).then(function(){
        return {'result':'OK'};
    });
}
示例#3
0
exports.returnLater = function( what ) {
	return promise.delay( 500 ).then( function() { return what; } );
}