* Returns whether the fiber has reached its operation budget and should yield. * * **When to use** * * Use to decide whether a fiber should yield after consuming its current * operation budget. * * @since 2.0.0
(fiber: Fiber.Fiber<unknown, unknown>)
| 172 | * @since 2.0.0 |
| 173 | */ |
| 174 | shouldYield(fiber: Fiber.Fiber<unknown, unknown>) { |
| 175 | return fiber.currentOpCount >= fiber.maxOpsBeforeYield |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * Creates a dispatcher that schedules work through this scheduler. |
nothing calls this directly
no outgoing calls
no test coverage detected