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

Function complete

packages/platform/node-shared/src/NodeHttpCompression.ts:52–53  ·  view source on GitHub ↗
(error: Error | null, result: Uint8Array)

Source from the content-addressed store, hash-verified

50): Effect.Effect<Uint8Array> =>
51 Effect.callback((resume) => {
52 const complete = (error: Error | null, result: Uint8Array) =>
53 resume(error === null ? Effect.succeed(result) : Effect.die(error))
54 switch (algorithm) {
55 case "gzip": {
56 Zlib.gzip(data, { level: options?.level }, complete)

Callers

nothing calls this directly

Calls 2

resumeFunction · 0.50
succeedMethod · 0.45

Tested by

no test coverage detected