MCPcopy
hub / github.com/Effect-TS/effect / shouldYield

Method shouldYield

packages/effect/src/Micro.ts:1814–1816  ·  view source on GitHub ↗

* @since 3.5.9

(fiber: MicroFiber<unknown, unknown>)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getRefMethod · 0.80

Tested by

no test coverage detected