Make `continuation` argument to `Facet.stop` optional
This commit is contained in:
parent
8a0dfb12c6
commit
2cbbfd3394
|
@ -519,7 +519,9 @@ Facet.prototype.stop = function (continuation) {
|
||||||
this.actor.scheduleScript(() => {
|
this.actor.scheduleScript(() => {
|
||||||
this._terminate();
|
this._terminate();
|
||||||
this.actor.scheduleScript(() => {
|
this.actor.scheduleScript(() => {
|
||||||
continuation.call(this.fields); // TODO: is this the correct scope to use??
|
if (continuation) {
|
||||||
|
continuation.call(this.fields); // TODO: is this the correct scope to use??
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue