http3: add a Context method to the StreamCreator interface (#3601)

This commit is contained in:
Marten Seemann
2022-10-22 10:51:24 +01:00
committed by GitHub
parent 1283a1f215
commit 85fbfb9405
2 changed files with 3 additions and 1 deletions

View File

@@ -173,7 +173,7 @@ type Connection interface {
// CloseWithError closes the connection with an error.
// The error string will be sent to the peer.
CloseWithError(ApplicationErrorCode, string) error
// The context is cancelled when the connection is closed.
// Context returns a context that is cancelled when the connection is closed.
Context() context.Context
// ConnectionState returns basic details about the QUIC connection.
// It blocks until the handshake completes.