(runID: string)
| 61 | } |
| 62 | const file = path.join(dir, "opencode.log") |
| 63 | const write = (runID: string) => |
| 64 | Effect.forEach( |
| 65 | Array.from({ length: 50 }, (_, index) => index), |
| 66 | (index) => Effect.logInfo(`entry-${index}`), |
| 67 | ).pipe( |
| 68 | Effect.provide(Logger.layer([fileLogger(file, runID)]).pipe(Layer.provide(NodeFileSystem.layer), Layer.orDie)), |
| 69 | Effect.scoped, |
| 70 | ) |
| 71 | |
| 72 | await Effect.runPromise(Effect.all([write("run-a"), write("run-b")], { concurrency: "unbounded" })) |
| 73 |
no test coverage detected