( method: string, pathOrDescriptor: string | number | undefined, evaluate: (signal: AbortSignal) => PromiseLike<A> )
| 14 | import { handleError } from "./internal/error.ts" |
| 15 | |
| 16 | const tryPromise = <A>( |
| 17 | method: string, |
| 18 | pathOrDescriptor: string | number | undefined, |
| 19 | evaluate: (signal: AbortSignal) => PromiseLike<A> |
| 20 | ) => |
| 21 | Effect.tryPromise({ |
| 22 | try: evaluate, |
| 23 | catch: handleError("FileSystem", method, pathOrDescriptor) |
| 24 | }) |
| 25 | |
| 26 | const close = (file: Deno.FsFile, method: string, pathOrDescriptor: string | number) => |
| 27 | Effect.orDie(Effect.try({ |
no test coverage detected