|
|
|
|
|
by klabb3
1510 days ago
|
|
Yep this is a utility function in sure thousands have written, including myself. It's not in std which is weird but go had been a bit inconsistent since context was a big api change. Fun fact: that func has a hidden bug, if one should be pedantic. Can you spot it? |
|
Are you referring to the fact that the timer is still hanging around? Would this be the most-correct version?