Skip to content

Simple worker pool with error checking. 2 cases: collecting all the errors and stopping after the first one.

Notifications You must be signed in to change notification settings

perfectgentlemande/go-simple-worker-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-simple-worker-pool

Simple worker pool with error checking

Main idea is:

  • you need to process some number of items with function that can return error
  • you should do that concurrently
  • error-returning items are generated randomly

There is package called dataset that includes functions that generate test data.

Case 1: collecting all the errors

When you need to collect all the errors while doing concurrent procession

Case 2: stopping after the first error

When you need abort the process after the first error

About

Simple worker pool with error checking. 2 cases: collecting all the errors and stopping after the first one.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages