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

Function close

packages/platform/deno/src/DenoFileSystem.ts:28–32  ·  view source on GitHub ↗
(file: Deno.FsFile, method: string, pathOrDescriptor: string | number)

Source from the content-addressed store, hash-verified

26 })
27
28const close = (file: Deno.FsFile, method: string, pathOrDescriptor: string | number) =>
29 Effect.orDie(Effect.try({
30 try: () => file.close(),
31 catch: handleError("FileSystem", method, pathOrDescriptor)
32 }))
33
34const collectAsyncIterable = <A>(
35 method: string,

Callers 3

accessFunction · 0.70
openFunction · 0.70
writeFileFunction · 0.70

Calls 2

handleErrorFunction · 0.90
closeMethod · 0.65

Tested by

no test coverage detected