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

Method constructor

packages/effect/src/Scheduler.ts:156–162  ·  view source on GitHub ↗
(
    executionMode: "sync" | "async" = "async",
    setImmediateFn?: (f: () => void) => () => void
  )

Source from the content-addressed store, hash-verified

154 readonly setImmediate: (f: () => void) => () => void
155
156 constructor(
157 executionMode: "sync" | "async" = "async",
158 setImmediateFn?: (f: () => void) => () => void
159 ) {
160 this.executionMode = executionMode
161 this.setImmediate = setImmediateFn ?? (executionMode === "sync" ? setMicrotask : setImmediate)
162 }
163
164 /**
165 * Returns whether the fiber has reached its operation budget and should yield.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected