Documentation ¶
Overview ¶
Concon : Cancel blocking network Read and Write operations using context.Context
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface { ReadContext(ctx context.Context, b []byte) (n int, err error) WriteContext(ctx context.Context, b []byte) (n int, err error) Close() error LocalAddr() net.Addr RemoteAddr() net.Addr }
Conn is a stream oriented network connection with i/o operations that are controlled by Contexts
func NewContextConn ¶
NewContextConn returns a Conn given a net.Conn. The caller is not expected to use the *Timeout() methods on the underlying net.Conn after this.
Click to show internal directories.
Click to hide internal directories.