Add WrapHandler to automatically call Tick on every request

This commit is contained in:
2023-09-11 20:24:10 -04:00
parent 8ca82581fe
commit ee28a78eda
2 changed files with 43 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ import (
"time"
)
func TestIdlerChan(t *testing.T) {
func TestIdlerChan(_ *testing.T) {
i := CreateIdler(1 * time.Second)
<-i.Chan()
}