Stop stops a service. Services are responsible for making sure their stop is complete before returning so a caller can wait on this invocation synchronously and be guaranteed the service is fully stopped. Services are expected to be able to tolerate (1) being stopped without having been started, and
()
| 32 | // are expected to be able to tolerate (1) being stopped without having been |
| 33 | // started, and (2) being double-stopped. |
| 34 | Stop() |
| 35 | } |
| 36 | |
| 37 | // ServiceWithStopped is a Service that can also return a Stopped channel. I've |
no outgoing calls