Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added lib to implement concurrency processing #48

Merged
merged 2 commits into from
May 8, 2024

Conversation

irdaislakhuafa
Copy link
Owner

  • feat(concurrency): implement concurrency package
  • feat: error handling in concurrency interface

Implement concurrency package to help execute code asynchronously.

This package provides a way to execute functions asynchronously using a worker pool.
It allows for custom configuration of the maximum number of workers, as well as the ability to use custom `sync.WaitGroup` and `sync.Mutex` instances.
It also provides a way to add errors that may occur during execution, which are returned when the `Do` method is called.
Add error handling capability to the concurrency interface.

This allows you to add errors to the interface, which will be returned at Do() method if exists. It is recommended to use errors.NewWithCode() to add errors.
@irdaislakhuafa irdaislakhuafa merged commit 34f0232 into master May 8, 2024
1 check passed
@irdaislakhuafa irdaislakhuafa deleted the concurrency branch May 8, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant