You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ordered-concurrently a library for concurrent processing with ordered output in Go. Process work concurrently and returns output in a channel in the order of input. It is useful in concurrently processing items in a queue, and get output in the order provided by the queue.
A library for parallel processing with ordered output in Go. This module processes work concurrently / in parallel and returns output in a channel in the order of input. It is useful in concurrently / parallelly processing items in a queue, and get output in the order provided by the queue.
Create a work function by implementing WorkFunction interface
// Create a type based on your input to the work functiontypeloadWorkerint// The work that needs to be performed// The input type should implement the WorkFunction interfacefunc (wloadWorker) Run(ctx context.Context) interface{} {
time.Sleep(time.Millisecond*time.Duration(rand.Intn(100)))
returnw*2
}
Ordered-concurrently a library for concurrent processing with ordered output in Go. Process work concurrently and returns output in a channel in the order of input. It is useful in concurrently processing items in a queue, and get output in the order provided by the queue.