MCPcopy
hub / github.com/Effect-TS/effect / unsafeGet

Function unsafeGet

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

Source from the content-addressed store, hash-verified

292 * @categories combinators
293 */
294export const unsafeGet = <A, E>(self: FiberHandle<A, E>): Option.Option<Fiber.RuntimeFiber<A, E>> =>
295 self.state._tag === "Closed" ? Option.none() : Option.fromNullable(self.state.fiber)
296
297/**
298 * Retrieve the fiber from the FiberHandle.

Callers 8

getFunction · 0.70
Array.tsFile · 0.70
FiberMap.tsFile · 0.70
getEquivalenceFunction · 0.70
copyToArrayFunction · 0.70
Chunk.tsFile · 0.70
unsafeHeadFunction · 0.70
unsafeLastFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected