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

Function useSync

packages/effect/src/Context.ts:295–297  ·  view source on GitHub ↗
(this: Service<never, any>, f: (service: any) => A)

Source from the content-addressed store, hash-verified

293 return withFiber((fiber) => f(get(fiber.context, this)))
294 },
295 useSync<A>(this: Service<never, any>, f: (service: any) => A): Effect<A, never, never> {
296 return withFiber((fiber) => exitSucceed(f(get(fiber.context, this))))
297 }
298}
299
300const cacheKeys = new Set<string>()

Callers

nothing calls this directly

Calls 2

getFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected