File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ import (
18
18
const tooBig = (1 << 30 ) << (^ uint (0 ) >> 62 )
19
19
20
20
// A Decoder manages the receipt of type and data information read from the
21
- // remote side of a connection.
21
+ // remote side of a connection. It is safe for concurrent use by multiple
22
+ // goroutines.
22
23
//
23
24
// The Decoder does only basic sanity checking on decoded input sizes,
24
25
// and its limits are not configurable. Take caution when decoding gob data
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ import (
12
12
)
13
13
14
14
// An Encoder manages the transmission of type and data information to the
15
- // other side of a connection.
15
+ // other side of a connection. It is safe for concurrent use by multiple
16
+ // goroutines.
16
17
type Encoder struct {
17
18
mutex sync.Mutex // each item must be sent atomically
18
19
w []io.Writer // where to send the data
You can’t perform that action at this time.
0 commit comments