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

Function onReadyStateChange

packages/platform/browser/src/BrowserHttpClient.ts:269–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267 }
268
269 const onReadyStateChange = () => {
270 if (this.source.readyState === 4) {
271 resume(Effect.succeed(this.source.responseText))
272 }
273 }
274 const onError = () => {
275 resume(Effect.fail(this.onError(this.source.statusText)))
276 }

Callers 1

streamFunction · 0.85

Calls 3

offerUnsafeMethod · 0.80
resumeFunction · 0.50
succeedMethod · 0.45

Tested by

no test coverage detected