MCPcopy Create free account
hub / github.com/Effect-TS/effect / runTasks

Method runTasks

packages/effect/src/Scheduler.ts:225–233  ·  view source on GitHub ↗

* @since 2.0.0

()

Source from the content-addressed store, hash-verified

223 * @since 2.0.0
224 */
225 runTasks() {
226 const buckets = this.tasks.drain()
227 for (let i = 0; i < buckets.length; i++) {
228 const toRun = buckets[i][1]
229 for (let j = 0; j < toRun.length; j++) {
230 toRun[j]()
231 }
232 }
233 }
234
235 /**
236 * @since 2.0.0

Callers 2

flushMethod · 0.95

Calls 1

drainMethod · 0.80

Tested by

no test coverage detected