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

Function write

packages/effect/src/encoding/Tar.ts:482–489  ·  view source on GitHub ↗
(f: () => void)

Source from the content-addressed store, hash-verified

480 let bodyScope: Scope.Closeable | undefined
481
482 const write = (f: () => void): Effect.Effect<void, TarError> => {
483 try {
484 f()
485 } catch (error) {
486 return isTarError(error) ? Effect.fail(error) : Effect.die(error)
487 }
488 return Effect.void
489 }
490
491 return Effect.gen(function*() {
492 while (true) {

Callers 1

encodeFunction · 0.70

Calls 3

isTarErrorFunction · 0.85
failMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected