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

Function dispose

packages/platform/src/HttpApp.ts:283–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281} => {
282 const scope = Effect.runSync(Scope.make())
283 const dispose = () => Effect.runPromise(Scope.close(scope, Exit.void))
284
285 let handlerCache: ((request: Request, context?: Context.Context<never> | undefined) => Promise<Response>) | undefined
286 // build eagerly so the layer is not tied to the lifetime of the first request

Callers 4

HttpApp.test.tsFile · 0.50
requestFunction · 0.50
HttpRunner.test.tsFile · 0.50

Calls 1

closeMethod · 0.65

Tested by 1

requestFunction · 0.40