(interval time.Duration)
| 45 | const ttl = sweepInterval / 3 |
| 46 | |
| 47 | func newMap(interval time.Duration) LockMap { |
| 48 | m := New(interval, &tomb.Tomb{}) |
| 49 | m.Tomb().Go(m.Run) |
| 50 | return m |
| 51 | } |
| 52 | |
| 53 | func assertResolved(promise Promise) { |
| 54 | select { |
no test coverage detected