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: add batcher to batch tasks #3

Merged
merged 2 commits into from
Dec 29, 2023
Merged

feat: add batcher to batch tasks #3

merged 2 commits into from
Dec 29, 2023

Conversation

NgoKimPhu
Copy link
Member

@NgoKimPhu NgoKimPhu commented Dec 20, 2023

batcher batches together tasks by max count or by timeout and execute a batch function on a list of tasks - this batch function should then resolves (result, error) for each task in the provided list.

Copy link

Test coverage changes:

Package Before After Diff
github.com/KyberNetwork/kutils 100.00% 100.00% ✔️

batcher.go Show resolved Hide resolved
@NgoKimPhu NgoKimPhu merged commit e60177d into main Dec 29, 2023
4 checks passed
@NgoKimPhu NgoKimPhu deleted the phu/batcher branch January 3, 2024 08:44
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.

2 participants