servicesStartupCtx Returns the context for the services startup. If the ServicesStartupContextProvider is not set, it returns a new background context.
()
| 59 | // servicesStartupCtx Returns the context for the services startup. |
| 60 | // If the ServicesStartupContextProvider is not set, it returns a new background context. |
| 61 | func (app *App) servicesStartupCtx() context.Context { |
| 62 | if app.configured.ServicesStartupContextProvider != nil { |
| 63 | return app.configured.ServicesStartupContextProvider() |
| 64 | } |
| 65 | |
| 66 | return context.Background() |
| 67 | } |
| 68 | |
| 69 | // servicesShutdownCtx Returns the context for the services shutdown. |
| 70 | // If the ServicesShutdownContextProvider is not set, it returns a new background context. |
no outgoing calls