Comparing version 0.0.13 to 0.0.14
@@ -25,6 +25,6 @@ "use strict"; | ||
return { | ||
next() { | ||
const { promise } = defer; | ||
async next() { | ||
const value = await defer.promise; | ||
defer = makeDefer(); | ||
return promise; | ||
return value; | ||
}, | ||
@@ -31,0 +31,0 @@ async return(value) { |
{ | ||
"name": "jdefer", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/tranvansang/jdefer", |
Sorry, the diff of this file is not supported yet
5803