BBVA / qed

The scalable, auditable and high-performance tamper-evident log project
https://qed.readthedocs.io/
Apache License 2.0
95 stars 19 forks source link

Design: Start() and Stop()/Shutdown() #90

Closed gdiazlo closed 5 years ago

gdiazlo commented 5 years ago

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?