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

Function uninterruptible

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

Source from the content-addressed store, hash-verified

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

Callers 2

onExitFunction · 0.70
acquireReleaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected