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

Function getUnsafe

packages/effect/src/FiberHandle.ts:458–460  ·  view source on GitHub ↗
(self: FiberHandle<A, E>)

Source from the content-addressed store, hash-verified

456 * @since 4.0.0
457 */
458export function getUnsafe<A, E>(self: FiberHandle<A, E>): Option.Option<Fiber.Fiber<A, E>> {
459 return self.state._tag === "Closed" ? Option.none() : Option.fromUndefinedOr(self.state.fiber)
460}
461
462/**
463 * Retrieves the fiber from the FiberHandle effectfully.

Callers 1

getFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected