James Shubin
|
446dbde836
|
util: Add new blocked timer utility
This adds a new *BlockedTimer struct which can be used to run a function
or a printf after a short duration. It can be cancelled early. A short
blog post about the topic is available here:
https://purpleidea.com/blog/2023/05/26/blocked-select-logging-in-golang/
|
2023-05-26 01:19:13 -04:00 |
|