Right now, we exit() from the sleeper thread when the time expire, that is bad. No library should ever finish a process (unless it is a panic). Move the work into a thread with the outer part being the data gathering part.
We might want to get full async at some point, tokio makes it simplier.
Ctrl-C handling in Windows is, as expected, broken.
Right now, we
exit()
from the sleeper thread when the time expire, that is bad. No library should ever finish a process (unless it is a panic). Move the work into a thread with the outer part being the data gathering part.We might want to get full async at some point, tokio makes it simplier.
Ctrl-C handling in Windows is, as expected, broken.