AwaitTerminated waits for the service to reach Terminated or Failed state. If service is already in one of these states, when method is called, method returns immediately. If service enters Terminated state, this method returns nil. If service enters Failed state, or context is finished before reach
(ctx context.Context)
| 74 | // If service enters Terminated state, this method returns nil. |
| 75 | // If service enters Failed state, or context is finished before reaching Terminated or Failed, error is returned. |
| 76 | AwaitTerminated(ctx context.Context) error |
| 77 | |
| 78 | // FailureCase returns error if Service is in Failed state. |
| 79 | // If Service is not in Failed state, this method returns nil. |
no outgoing calls