Add idle package
This commit is contained in:
11
idle/idle_test.go
Normal file
11
idle/idle_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package idle
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestIdlerChan(t *testing.T) {
|
||||
i := CreateIdler(1 * time.Second)
|
||||
<-i.Chan()
|
||||
}
|
Reference in New Issue
Block a user