add waiting count
This commit is contained in:
parent
0bdc043a8a
commit
03e9105ce6
5
lib.go
5
lib.go
@ -58,3 +58,8 @@ func (c TestClock) Pass(d time.Duration) {
|
||||
func (c TestClock) Jump(t time.Time) {
|
||||
c.clock.jump(t)
|
||||
}
|
||||
|
||||
// Waiting tells how many channels are waiting set by After().
|
||||
func (c TestClock) Waiting() int {
|
||||
return c.clock.waiting()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user