Add idle package

This commit is contained in:
2023-05-08 22:37:03 -04:00
parent bbef4be4a7
commit 710e8b66e6
2 changed files with 79 additions and 0 deletions

11
idle/idle_test.go Normal file
View File

@@ -0,0 +1,11 @@
package idle
import (
"testing"
"time"
)
func TestIdlerChan(t *testing.T) {
i := CreateIdler(1 * time.Second)
<-i.Chan()
}