gozxing
gozxing copied to clipboard
Question: Are the decode and encode operations goroutine safe for each encoder or decoder?
In my use case, I use the QRCodeReader.Decode method to decode images. I employ multiple goroutines to call Decode on a single QRCodeReader. Could this cause a data race issue?
@amikai
As far as I remember, the internal state of QRCodeReader is static, so race conditions should not occur.
👋 Hey @amikai / @makiuchi-d - potentially my change here might be relevant and of interest: https://github.com/makiuchi-d/gozxing/pull/75