Closed maddie closed 4 years ago
yes, the client API is thread-safe: all exported methods acquire a mutex at some point.
See https://github.com/simonvetter/modbus/blob/master/client.go#L796 and https://github.com/simonvetter/modbus/blob/master/client.go#L706 for reads. Writes and other methods should all do something similar.
Let me know if you run into any concurrency issue as that would definitely be a bug.
Good to know, thanks a lot!
Is it safe to call
client.Read*
methods concurrently?