mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-06-27 10:15:33 +02:00
sequencer: improve Godocs
This commit is contained in:
parent
63845b370d
commit
e50476620c
@ -22,6 +22,8 @@ type seqWriter struct {
|
|||||||
|
|
||||||
// Channel[T] is a multi-producer, single-consumer channel of items with monotonicaly-increasing sequence numbers.
|
// Channel[T] is a multi-producer, single-consumer channel of items with monotonicaly-increasing sequence numbers.
|
||||||
// Items can be sent in any order, but they are always received in order of their sequence number.
|
// Items can be sent in any order, but they are always received in order of their sequence number.
|
||||||
|
// It is unsafe to call Next concurrently with itself, or to call Add/Reserve concurrently with another Add/Reserve
|
||||||
|
// call for the same sequence number. Otherwise, methods are safe to call concurrently.
|
||||||
type Channel[T any] struct {
|
type Channel[T any] struct {
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
next uint64
|
next uint64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user