(logger slog.Logger)
| 38 | } |
| 39 | |
| 40 | func WithLogger(logger slog.Logger) Option { |
| 41 | return func(o *options) { |
| 42 | o.Logger = logger |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // WithReaperStop sets a channel that, when closed, stops the reaper |
| 47 | // goroutine. Callers that invoke ForkReap more than once in the |