endregion region Hook setup OnStateChange adds a function handler to be called on any state change.
(func(s Service, l Lifecycle, state State))
| 72 | |
| 73 | // OnStateChange adds a function handler to be called on any state change. |
| 74 | OnStateChange(func(s Service, l Lifecycle, state State)) Lifecycle |
| 75 | |
| 76 | // OnStarting adds a function handler to be called when the service is about to start. |
| 77 | OnStarting(func(s Service, l Lifecycle)) Lifecycle |
no outgoing calls