Skip to content

Conversation

@bbakerman
Copy link
Member

@bbakerman bbakerman commented Sep 1, 2023

This is sort of a POC but perhaps it can just be our approach to locking key structures

synchronised is simple but Loom does not like it

https://softwaremill.com/what-is-blocking-in-loom/

related also to quarkusio/quarkus#35605 (comment)

Copy link

@He-Pin He-Pin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

*/
public void addError(GraphQLError error, ResultPath fieldPath) {
synchronized (this) {
errorsLock.runLocked(() -> {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this kind of change, diff is small

@dondonz dondonz added this to the 21.2 milestone Oct 17, 2023
@dondonz dondonz added this pull request to the merge queue Oct 17, 2023
Merged via the queue into master with commit 4ce92a5 Oct 17, 2023
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.

4 participants