You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -149,7 +149,7 @@ These simplify creating `Component` values:
149
149
150
150
Pass these to `NewManager` using the `With...` functions:
151
151
152
-
* `unixcycle.WithLoggingHandler(handler slog.Handler)`: Sets the `slog`handlerfor logging. If`nil`, logging is disabled (sent to `io.Discard`). Defaults to a text handler writing to `os.Stdout`.
152
+
* `unixcycle.WithLogger(logger *slog.Logger)`: Sets the `slog`loggerfor logging. If`nil`, logging is disabled (sent to `io.Discard`). Defaults to a text handler writing to `os.Stdout`.
* `unixcycle.WithCloseTimeout(time.Duration)`: Timeout for *each* component's `Close()` call. Defaults to 5 seconds.
155
155
* `unixcycle.WithLifetime(unixcycle.TerminationSignal)`: A function `func() syscall.Signal` that blocks until termination is requested. Defaults to `unixcycle.InterruptSignal` (waits for`SIGINT` or `SIGTERM`).
0 commit comments