clockwork
clockwork copied to clipboard
add AfterFunc
I didn't see a way to build the equivalent of time.AfterFunc using the public APIs without leaking a goroutine and the callback func.
With the internal APIs, it's pretty easy.