PaesslerAG / gval

Expression evaluation in golang
BSD 3-Clause "New" or "Revised" License
713 stars 83 forks source link

Question on thread safety of concurrent evaluations #102

Closed carlosabalde closed 5 months ago

carlosabalde commented 5 months ago

Is ok to share the result of gval.Evaluate() across goroutines for concurrent evaluation? I din't find anything in the docs about it and some tests seem to indicate that it is ok, but I would like to be sure. Thanks!

generikvault commented 5 months ago

Yes you can share the results.

carlosabalde commented 5 months ago

Thanks for confirming!