MCPcopy
hub / github.com/Effect-TS/effect / flush

Method flush

packages/effect/src/Scheduler.ts:206–217  ·  view source on GitHub ↗

* @since 2.0.0

()

Source from the content-addressed store, hash-verified

204 * @since 2.0.0
205 */
206 flush() {
207 while (this.tasks.buckets.length > 0) {
208 const tasks = this.tasks.buckets
209 this.tasks.buckets = []
210 for (const [_, toRun] of tasks) {
211 for (let i = 0; i < toRun.length; i++) {
212 toRun[i]()
213 }
214 }
215 }
216 this.deferred = true
217 }
218}
219
220/**

Callers 5

handleForbiddenFunction · 0.95
validateMethod · 0.95
makeFunction · 0.95
persistedFunction · 0.45
runtime.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected