MCPcopy Index your code
hub / github.com/Effect-TS/effect / addressWith

Function addressWith

packages/platform/src/internal/httpServer.ts:144–150  ·  view source on GitHub ↗
(
  effect: (address: Server.Address) => Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

142
143/** @internal */
144export const addressWith = <A, E, R>(
145 effect: (address: Server.Address) => Effect.Effect<A, E, R>
146): Effect.Effect<A, E, Server.HttpServer | R> =>
147 Effect.flatMap(
148 serverTag,
149 (server) => effect(server.address)
150 )
151
152/** @internal */
153export const addressFormattedWith = <A, E, R>(

Callers 1

httpServer.tsFile · 0.85

Calls 1

effectFunction · 0.50

Tested by

no test coverage detected