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

Function onChange

packages/platform-browser/src/internal/httpClient.ts:60–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 Effect.async<ClientResponseImpl, Error.RequestError>((resume) => {
59 let sent = false
60 const onChange = () => {
61 if (!sent && xhr.readyState >= 2) {
62 sent = true
63 resume(Effect.succeed(new ClientResponseImpl(request, xhr)))
64 }
65 }
66 xhr.onreadystatechange = onChange
67 xhr.onerror = (_event) => {
68 resume(Effect.fail(

Callers 1

httpClient.tsFile · 0.85

Calls 1

resumeFunction · 0.50

Tested by

no test coverage detected