Skip to content

Commit e5f7f5b

Browse files
Clarify exit delay comment for non-zero exits
1 parent c488308 commit e5f7f5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎app.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (t stopTimeoutOption) String() string {
159159
}
160160

161161
// ExitDelay changes the application's exit delay.
162-
// This controls how long Fx waits before calling os.Exit when exit code 1 is returned.
162+
// This controls how long Fx waits before calling os.Exit when exit code other than 0 is returned.
163163
// Defaults to zero (no delay).
164164
func ExitDelay(v time.Duration) Option {
165165
return exitDelayOption(v)
@@ -330,7 +330,7 @@ type App struct {
330330
// Timeouts used
331331
startTimeout time.Duration
332332
stopTimeout time.Duration
333-
// Delay to wait before calling os.Exit when exit code 1 is returned.
333+
// Delay to wait before calling os.Exit when exit code other than 0 is returned.
334334
exitDelay time.Duration
335335
// Decides how we react to errors when building the graph.
336336
errorHooks []ErrorHandler

0 commit comments

Comments
 (0)