Closed guillaumelamirand closed 4 years ago
As we define a interval and we use a sleep to wait a bit, we don't need to use the stream api to request stats from docker. Also we can directly use the thread.Event() in a while loop to stop the thread directly.
As we define a interval and we use a sleep to wait a bit, we don't need to use the stream api to request stats from docker. Also we can directly use the thread.Event() in a while loop to stop the thread directly.