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

Function onSuccess

packages/platform/src/internal/httpClient.ts:221–224  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

219 return Effect.uninterruptibleMask((restore) =>
220 Effect.matchCauseEffect(restore(effect), {
221 onSuccess(response) {
222 responseRegistry.register(response, controller)
223 return Effect.succeed(new InterruptibleResponse(response, controller))
224 },
225 onFailure(cause) {
226 if (Cause.isInterrupted(cause)) {
227 controller.abort()

Callers

nothing calls this directly

Calls 1

registerMethod · 0.65

Tested by

no test coverage detected