| 1 | import * as Effect from "effect/Effect" |
| 2 | import * as Metric from "effect/Metric" |
| 3 | |
| 4 | const program = Effect.gen(function*() { |
| 5 | yield* Effect.succeed(1).pipe( |
| 6 | Effect.forkChild({ startImmediately: true }) |
| 7 | ) |
| 8 | }) |
| 9 | |
| 10 | program.pipe( |
| 11 | Metric.enableRuntimeMetrics, |
| 12 | Effect.runFork |
| 13 | ) |