MCPcopy Index your code
hub / github.com/Effect-TS/effect / uninterruptible

Function uninterruptible

packages/effect/src/Micro.ts:3637–3645  ·  view source on GitHub ↗
(
  self: Micro<A, E, R>
)

Source from the content-addressed store, hash-verified

3635 * @category flags
3636 */
3637export const uninterruptible = <A, E, R>(
3638 self: Micro<A, E, R>
3639): Micro<A, E, R> =>
3640 withMicroFiber((fiber) => {
3641 if (!fiber.interruptible) return self
3642 fiber.interruptible = false
3643 fiber._stack.push(setInterruptible(true))
3644 return self
3645 })
3646
3647const setInterruptible: (interruptible: boolean) => Primitive = makePrimitive({
3648 op: "SetInterruptible",

Callers 2

onExitFunction · 0.70
acquireReleaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected