From 09b0566b1092b0913afb0219ba8688ba63ea4b1d Mon Sep 17 00:00:00 2001 From: Bergi Date: Sat, 23 Jul 2016 18:04:00 +0200 Subject: [PATCH] always resume coroutines asynchronously closes #31. --- src/coroutine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coroutine.js b/src/coroutine.js index 0cd06e2..e405754 100644 --- a/src/coroutine.js +++ b/src/coroutine.js @@ -33,7 +33,7 @@ class Coroutine extends Action { return this.promise._resolve(result.value) } - this.resolve(result.value)._runAction(this) + this.resolve(result.value)._when(this) } fulfilled (ref) {