Skip to content

Commit

Permalink
Try to start runLoop manually.
Browse files Browse the repository at this point in the history
Adds support to run with environment 3.
  • Loading branch information
mshima committed Nov 20, 2020
1 parent a8c208e commit 384e1bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 384e1bb

Please sign in to comment.