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

Method scheduleTask

packages/effect/src/Scheduler.ts:207–212  ·  view source on GitHub ↗

* @since 2.0.0

(task: () => void, priority: number)

Source from the content-addressed store, hash-verified

205 * @since 2.0.0
206 */
207 scheduleTask(task: () => void, priority: number) {
208 this.tasks.scheduleTask(task, priority)
209 if (this.running === undefined) {
210 this.running = this.setImmediate(this.afterScheduled)
211 }
212 }
213
214 /**
215 * @since 2.0.0

Callers

nothing calls this directly

Calls 1

scheduleTaskMethod · 0.65

Tested by

no test coverage detected