MCPcopy
hub / github.com/bnb-chain/bsc / Close

Method Close

p2p/dial_test.go:540–547  ·  view source on GitHub ↗

Close ends the iterator, unblocking Next.

()

Source from the content-addressed store, hash-verified

538
539// Close ends the iterator, unblocking Next.
540func (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.
550type dialTestDialer struct {

Callers

nothing calls this directly

Calls 2

LockMethod · 0.80
UnlockMethod · 0.45

Tested by

no test coverage detected