diff --git a/src/engine/block-utility.js b/src/engine/block-utility.js index 2026c0f0d..b456d02fa 100644 --- a/src/engine/block-utility.js +++ b/src/engine/block-utility.js @@ -57,6 +57,13 @@ class BlockUtility { this.thread.status = Thread.STATUS_YIELD; } + /** + * Set the thread to yield until the next tick of the runtime. + */ + yieldTick () { + this.thread.status = Thread.STATUS_YIELD_TICK; + } + /** * Start a branch in the current block. * @param {number} branchNum Which branch to step to (i.e., 1, 2).