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

Function clear

packages/effect/src/FiberSet.ts:433–439  ·  view source on GitHub ↗
(self: FiberSet<A, E>)

Source from the content-addressed store, hash-verified

431 * @since 2.0.0
432 */
433export const clear = <A, E>(self: FiberSet<A, E>): Effect.Effect<void> =>
434 Effect.suspend(() => {
435 if (self.state._tag === "Closed") {
436 return Effect.void
437 }
438 return Fiber.interruptAllAs(self.state.backing, internalFiberId)
439 })
440
441const constInterruptedFiber = (function() {
442 let fiber: Fiber.Fiber<never, never> | undefined = undefined

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected