WaitAllStarted waits until all the given services are started (or stopped in a degenerate start scenario, like if context is cancelled while starting up). Unlike StopAllParallel, WaitAllStarted doesn't bother with parallelism because the services themselves have already backgrounded themselves, and
(services ...Service)
| 315 | // because the services themselves have already backgrounded themselves, and we |
| 316 | // have to wait until the slowest service has started anyway. |
| 317 | func WaitAllStarted(services ...Service) { |
| 318 | <-WaitAllStartedC(services...) |
| 319 | } |
| 320 | |
| 321 | // WaitAllStartedC waits until all the given services are started (or stopped in |
| 322 | // a degenerate start scenario, like if context is cancelled while starting up). |
searching dependent graphs…