Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchableItems ¶
type Fetcher ¶
type Fetcher[OutputType any] interface { Err() error Start() (<-chan OutputType, context.CancelFunc, error) }
func NewConcurrentFetcher ¶
func NewConcurrentFetcher[I FetchableItems[O], O any](ctx context.Context, nWorkers, maxItemsInMemory int, inputChan <-chan FetchableItems[O]) (Fetcher[O], error)
Click to show internal directories.
Click to hide internal directories.