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

Method unsafeGet

packages/cluster/src/internal/resourceRef.ts:51–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 latch = Effect.unsafeMakeLatch(true)
50
51 unsafeGet(): Option.Option<A> {
52 if (this.state.current._tag === "Acquired") {
53 return Option.some(this.state.current.value)
54 }
55 return Option.none()
56 }
57
58 unsafeRebuild(): Effect.Effect<void, E> {
59 const s = this.state.current

Callers 15

makeMiddlewareMapFunction · 0.80
handlerToRouteFunction · 0.80
toHandledFunction · 0.80
unsafeEjectStreamScopeFunction · 0.80
fromWebHandlerFunction · 0.80
toHttpAppFunction · 0.80
httpMiddleware.tsFile · 0.80
searchParamsParserFunction · 0.80
corsFunction · 0.80
applyMiddlewareFunction · 0.80

Calls

no outgoing calls

Tested by 3

scanLeftFunction · 0.64
interleaveFunction · 0.64
splitFunction · 0.64