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

Function useSync

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

Source from the content-addressed store, hash-verified

305 return withFiber((fiber) => f(get(fiber.context, this)))
306 },
307 useSync<A>(this: Service<never, any>, f: (service: any) => A): Effect<A, never, never> {
308 return withFiber((fiber) => exitSucceed(f(get(fiber.context, this))))
309 }
310 }
311)
312

Callers

nothing calls this directly

Calls 2

getFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected