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

Method unsafeSchedule

packages/effect/src/internal/effect/circular.ts:145–152  ·  view source on GitHub ↗
(fiber: Fiber.RuntimeFiber<void>)

Source from the content-addressed store, hash-verified

143 }
144
145 private unsafeSchedule(fiber: Fiber.RuntimeFiber<void>) {
146 if (this.scheduled || this.waiters.length === 0) {
147 return core.void
148 }
149 this.scheduled = true
150 fiber.currentScheduler.scheduleTask(this.flushWaiters, fiber.getFiberRef(core.currentSchedulingPriority), fiber)
151 return core.void
152 }
153 private flushWaiters = () => {
154 this.scheduled = false
155 const waiters = this.waiters

Callers 1

LatchClass · 0.95

Calls 2

scheduleTaskMethod · 0.65
getFiberRefMethod · 0.65

Tested by

no test coverage detected