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

Function close

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

Source from the content-addressed store, hash-verified

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