I think any component with Start() and a Stop() methods should make those methods non-blocking. We would need to block only those without the Stop() method.
The start should create a goroutine and the stop should end it. Without any leaking, and without the user of the API knowing the internals used to do that.
I think any component with Start() and a Stop() methods should make those methods non-blocking. We would need to block only those without the Stop() method.
The start should create a goroutine and the stop should end it. Without any leaking, and without the user of the API knowing the internals used to do that.
Thoughts?