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

Feature/order output #4

Merged
merged 2 commits into from
Oct 27, 2023
Merged

Feature/order output #4

merged 2 commits into from
Oct 27, 2023

Conversation

F-Amaral
Copy link
Owner

Add ordering possibilities when using the option "WithOrderedOutput" on the constructor of the pool.

Example:

		dataSet := make([]int, 100)
		for i := 0; i < 100; i++ {
			dataSet[i] = i
		}

		sut := pool.NewPool[int, int](10, func(i int) (int, error) {
			return i, assert.AnError
		}, pool.WithSortingOutput[int, int]())

		res := sut.Process(dataSet)

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (528343e) 100.00% compared to head (4010d4b) 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #4   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           79        99   +20     
=========================================
+ Hits            79        99   +20     
Files Coverage Δ
async/processor.go 100.00% <100.00%> (ø)
pool/jobpool.go 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@johnfercher johnfercher merged commit 0a88db7 into main Oct 27, 2023
3 checks passed
@johnfercher johnfercher deleted the feature/order-output branch October 27, 2023 01:56
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

3 participants