time: test: Add test for stop on func-based Timer
I was working on Timer-related topics and started to suspect that stop might become panicking when draining timer channel if func != nil. That turned out to be not true - the code is correct as it is, but it generally helps to have tests covering questionable functionality.
Showing
Please register or sign in to comment