Close ends the iterator, unblocking Next.
()
| 538 | |
| 539 | // Close ends the iterator, unblocking Next. |
| 540 | func (it *dialTestIterator) Close() { |
| 541 | it.mu.Lock() |
| 542 | defer it.mu.Unlock() |
| 543 | |
| 544 | it.closed = true |
| 545 | it.buf = nil |
| 546 | it.cond.Signal() |
| 547 | } |
| 548 | |
| 549 | // dialTestDialer is the NodeDialer used by runDialTest. |
| 550 | type dialTestDialer struct { |