Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Remove fail function since Future got Future.rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
robotlolita committed Sep 22, 2014
1 parent 19db566 commit d715440
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@ var Future = require('data.future')

// -- Implementation ---------------------------------------------------

/**
* Returns an action that always fails with the given data.
*
* @method
* @summary α → Future[α, β]
*/
exports.fail = fail
function fail(a) {
return new Future(function(reject, resolve) { reject(a) })
}


/**
* Memoises the result of a Future, for performance in pure Futures.
*
Expand Down
5 changes: 0 additions & 5 deletions test/specs-src/core.sjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,5 @@ var async = require('../../')

module.exports = spec('Async/Core', function(it, spec) {

spec('fail()', function(it) {
it('Should always fail.', function() {

})
})

})

0 comments on commit d715440

Please sign in to comment.