AwaitRunning waits until service gets into Running state. If service is in New or Starting state, this method is blocking. If service is already in Running state, returns immediately with no error. If service is in a state, from which it cannot get into Running state, error is returned immediately.
(ctx context.Context)
| 62 | // If service is already in Running state, returns immediately with no error. |
| 63 | // If service is in a state, from which it cannot get into Running state, error is returned immediately. |
| 64 | AwaitRunning(ctx context.Context) error |
| 65 | |
| 66 | // StopAsync tell the service to stop. This method doesn't block and can be called multiple times. |
| 67 | // If Service is New, it is Terminated without having been started nor stopped. |
no outgoing calls