KnutZuidema / golio

League of Legends, Legends of Runeterra and Valorant API client library for Go
MIT License
72 stars 29 forks source link

Is this library thread safe? #52

Closed harmonherring closed 1 year ago

harmonherring commented 2 years ago

Just trying to figure out if I can use this the way I'd like. I'd like to create a global var client for each region and use each client whenever I need, in separate goroutines. Will that work or will it screw with the caching?

Are there any particular directions you're looking to take this library other than what's mentioned in the issues? Would love to help out wherever I can :)

KnutZuidema commented 1 year ago

@harmonherring Yes, the clients are safe for concurrent use. I'm currently not actively working on this project. If there is anything you wish to add, contributions are warmly welcomed.