MCPcopy Create free account
hub / github.com/effect-app/libs / use

Function use

repos/effect/packages/effect/src/Context.ts:290–292  ·  view source on GitHub ↗
(this: Service<never, any>, f: (service: any) => Effect<A, E, R>)

Source from the content-addressed store, hash-verified

288 self: Shape
289 ): Context<Identifier> {
290 return make(this, self)
291 },
292 use<A, E, R>(this: Service<never, any>, f: (service: any) => Effect<A, E, R>): Effect<A, E, R> {
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> {

Callers 1

acquireUseReleaseFunction · 0.70

Calls 2

getFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected