From 384e1bb5f5fe3f41b845f8e79ccdecd36e184011 Mon Sep 17 00:00:00 2001 From: Marcelo Boveto Shima Date: Thu, 19 Nov 2020 22:15:04 -0300 Subject: [PATCH] Try to start runLoop manually. Adds support to run with environment 3. --- lib/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/index.js b/lib/index.js index c4a66299..4316a0fa 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1129,6 +1129,10 @@ class Generator extends EventEmitter { this._composedWith.forEach(runGenerator); this._composedWith = []; + + if (typeof this.env.runLoop.start === 'function') { + this.env.runLoop.start(); + } }); // For composed generators, otherwise error will not be catched.