Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecConcurrency ¶ added in v1.110.28
func DecConcurrency()
DecConcurrency returns the token obtained via IncConcurrency(), so other goroutines could obtain it.
func IncConcurrency ¶ added in v1.110.28
func IncConcurrency() error
IncConcurrency obtains a concurrency token from -maxConcurrentInserts.
The obtained token must be returned back via DecConcurrency() call.
Types ¶
type Reader ¶ added in v1.86.0
type Reader struct {
// contains filtered or unexported fields
}
Reader is a reader, which decreases the concurrency before every Read() call and increases the concurrency after Read() call.
It effectively limits the number of concurrent goroutines, which may process results returned by concurrently processed Reader structs.
The Reader must be obtained via GetReader() call.
Click to show internal directories.
Click to hide internal directories.