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

Method shouldYield

packages/effect/src/Micro.ts:1815–1817  ·  view source on GitHub ↗

* @since 3.5.9

(fiber: MicroFiber<unknown, unknown>)

Source from the content-addressed store, hash-verified

1813 * @since 3.5.9
1814 */
1815 shouldYield(fiber: MicroFiber<unknown, unknown>) {
1816 return fiber.currentOpCount >= fiber.getRef(MaxOpsBeforeYield)
1817 }
1818
1819 /**
1820 * @since 3.5.9

Callers

nothing calls this directly

Calls 1

getRefMethod · 0.80

Tested by

no test coverage detected