Add blocking yield mode

This commit is contained in:
Tim Mickel 2016-06-20 16:44:53 -04:00
parent c63747e61b
commit d44b806b4f
4 changed files with 44 additions and 2 deletions
src/engine

View file

@ -74,6 +74,7 @@ var execute = function (sequencer, thread) {
var primitiveReportedValue = null;
primitiveReportedValue = blockFunction(argValues, {
yield: thread.yield.bind(thread),
yieldAndBlock: thread.yieldAndBlock.bind(thread),
done: function() {
sequencer.proceedThread(thread);
},