☰
Debian Codegraph
@
0.0~git20170517.0.cb568a3-5
/
/
timingwheel
/
timingwheel_test.go
☽
☼
timingwheel/timingwheel_test.go
code
plain
raw
symbols
SCIP
Expat
2014 siddontang
debian/copyright
1
package
timingwheel
2
3
import
(
4
"testing"
5
"time"
6
)
7
8
func
TestTimingWheel(t *testing.
T
) {
9
w := NewTimingWheel(
100
*time.
Millisecond
,
10
)
10
11
for
{
12
select
{
13
case
<-w.
After
(
200
* time.
Millisecond
):
14
return
15
}
16
}
17
}