Replies: 1 comment 2 replies
-
there are no go routines created during but note that user may call validate from multiple go-routines. I am not sure where do you want to maintain state. if you are planing to store in currently I don't think the extension api has any provision to store state within single schema validate call |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given an extension for a keyword, if the keyword is found multiple times in a document, the extension schema's
Validate
method will be invoked once per keyword occurrence.The question is, will those
Validate
calls be made concurrently? If the extension is used to accumulate state from withinValidate
, should one protect against race conditions?Beta Was this translation helpful? Give feedback.
All reactions