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

Method scheduleReleaseTaker

packages/effect/src/internal/mailbox.ts:414–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

412
413 private scheduleRunning = false
414 private scheduleReleaseTaker() {
415 if (this.scheduleRunning) {
416 return
417 }
418 this.scheduleRunning = true
419 this.scheduler.scheduleTask(this.releaseTaker, 0)
420 }
421 private releaseTaker = () => {
422 this.scheduleRunning = false
423 if (this.state._tag === "Done") {

Callers 3

offerMethod · 0.95
unsafeOfferMethod · 0.95
unsafeOfferAllArrayMethod · 0.95

Calls 1

scheduleTaskMethod · 0.65

Tested by

no test coverage detected