1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

transport/reader.go: document concurrency requirement of Read()

This commit is contained in:
Henrik Hautakoski 2023-03-29 11:38:54 +02:00
parent 531a2d3d17
commit bbda49ab90

View file

@ -7,5 +7,7 @@ package transport
type Reader interface {
// Read a message from a channel.
// Read may block until a message is ready or an error occured.
//
// This function should be designed to handle concurrent calls. eg. thread safe.
Read(channel Channel) ([]byte, error)
}