clock icon indicating copy to clipboard operation
clock copied to clipboard

Allow calling Timer.Reset from within the AfterFunc callback, fix tests

Open gagern opened this issue 3 years ago • 0 comments

Allow calling Timer.Reset from within the AfterFunc callback. This is a more far-reaching request than https://github.com/benbjohnson/clock/pull/27 because it not only requires the mutex to be unlocked, but also the stop state to be fully registered by the time the function gets invoked.

Also fixes tests that have been broken for me.

gagern avatar Jun 18 '21 15:06 gagern