-
Notifications
You must be signed in to change notification settings - Fork 86
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
Update Svg Helper function with Read Write mutex w/signoff #581
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jougan-0 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Jougan-0 Let's use ThreadSafeStore
defined in store.go
for managing the SVG cache.
Signed-off-by: Jougan-0 <[email protected]>
@@ -495,3 +496,35 @@ func ConvertMapInterfaceMapString(v interface{}) interface{} { | |||
|
|||
return v | |||
} | |||
|
|||
func WorkerPool[T any](tasks []T, workerFunc func(T), maxWorkers int) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you revisit the workerFunc return type? How is the error handling done?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'll see how to improve the error.
Description
This PR fixes #
PR needs to be merged to fix conflict with concurrency reduce registration time.
Notes for Reviewers
Signed commits