Wait waits for the app to receive the termination signal.
()
| 365 | |
| 366 | // Wait waits for the app to receive the termination signal. |
| 367 | func (f *App) Wait() { |
| 368 | if f.signals != nil { |
| 369 | <-f.signals |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | // Shutdown is responsible for tearing down everything gracefully. |
| 374 | func (f *App) Shutdown() error { |
no outgoing calls