Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Launch ¶
func Launch[J, R any]( ctx context.Context, queueSize int, workersCount int, f DoFunc[J, R], ) ( jobQueue chan *J, resultsChan chan JobResult[J, R], cleanup func(), )
Launch launches arbitrary number of worker goroutines and which receive jobs from the job queue and sends the result to results channel.
Types ¶
Click to show internal directories.
Click to hide internal directories.