1
0
mirror of https://github.com/libp2p/go-libp2p-core.git synced 2025-03-26 13:00:07 +08:00

doc: document Close on Transport ()

fixes 
This commit is contained in:
Steven Allen 2021-03-29 08:41:49 -07:00 committed by GitHub
parent 11f3c3ac0c
commit cfab100b7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,10 @@ type CapableConn interface {
// CapableConn, which means that they have been upgraded to support
// stream multiplexing and connection security (encryption and authentication).
//
// If a transport implements `io.Closer` (optional), libp2p will call `Close` on
// shutdown. NOTE: `Dial` and `Listen` may be called after or concurrently with
// `Close`.
//
// For a conceptual overview, see https://docs.libp2p.io/concepts/transport/
type Transport interface {
// Dial dials a remote peer. It should try to reuse local listener