mirror of https://github.com/lukechilds/node.git
Browse Source
The current implementation was bad and nobody is using it. Has a chance of getting re-implemented by somebody who has an actual need for it.v0.7.4-release
Felix Geisendörfer
15 years ago
committed by
Ryan Dahl
4 changed files with 1 additions and 78 deletions
@ -1,13 +0,0 @@ |
|||
process.mixin(require('./common')); |
|||
events = require('events'); |
|||
|
|||
var promise = new events.Promise(); |
|||
var cancelled = false; |
|||
promise.addCancelback(function(){ |
|||
if(cancelled){ |
|||
assert.ok(false, "promise should not cancel more than once"); |
|||
} |
|||
cancelled = true; |
|||
}); |
|||
promise.cancel(); |
|||
promise.cancel(); |
Loading…
Reference in new issue