MCPcopy
hub / github.com/midrender/revideo / next

Method next

packages/core/src/threading/Thread.ts:132–145  ·  view source on GitHub ↗

* Progress the wrapped generator once.

()

Source from the content-addressed store, hash-verified

130 * Progress the wrapped generator once.
131 */
132 public next() {
133 if (this.paused) {
134 return {
135 value: null,
136 done: false,
137 };
138 }
139
140 startThread(this);
141 const result = this.runner.next(this.value);
142 endThread(this);
143 this.value = null;
144 return result;
145 }
146
147 /**
148 * Prepare the thread for the next update cycle.

Callers

nothing calls this directly

Calls 3

startThreadFunction · 0.90
endThreadFunction · 0.90
nextMethod · 0.65

Tested by

no test coverage detected