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

Function clear

packages/effect/src/FiberMap.ts:706–712  ·  view source on GitHub ↗
(self: FiberMap<K, A, E>)

Source from the content-addressed store, hash-verified

704 * @since 2.0.0
705 */
706export const clear = <K, A, E>(self: FiberMap<K, A, E>): Effect.Effect<void> =>
707 Effect.suspend(() => {
708 if (self.state._tag === "Closed") {
709 return Effect.void
710 }
711 return Fiber.interruptAllAs(MutableHashMap.values(self.state.backing), internalFiberId)
712 })
713
714const constInterruptedFiber = (function() {
715 let fiber: Fiber.Fiber<never, never> | undefined = undefined

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected