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

Function write

packages/effect/src/encoding/Zip.ts:570–577  ·  view source on GitHub ↗
(f: () => void)

Source from the content-addressed store, hash-verified

568 }
569
570 const write = (f: () => void): Effect.Effect<void, ZipError> => {
571 try {
572 f()
573 } catch (error) {
574 return isZipError(error) ? Effect.fail(error) : Effect.die(error)
575 }
576 return Effect.void
577 }
578
579 return Effect.gen(function*() {
580 while (true) {

Callers 1

encodeFunction · 0.70

Calls 3

isZipErrorFunction · 0.85
failMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected