You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authenticate() might not be threadsafe as is, or at the very least multiple threads could be authenticating and the same time and overwriting each other's results, which is not necessarily harmful but is a bit of a waste.
Possibly use a SemaphorSlim.
The text was updated successfully, but these errors were encountered:
The main thread-safety concern was in the logic that automatically authenticates and refreshes tokens when necessary. This was updated in #97 to use async locking, which should cover the majority of auth scenarios. Per the docs, "there should be very few use cases where [manually authenticating] is necessary", so although technically this issue isn't fixed, the cases where it could come up are far fewer.
Authenticate()
might not be threadsafe as is, or at the very least multiple threads could be authenticating and the same time and overwriting each other's results, which is not necessarily harmful but is a bit of a waste.Possibly use a SemaphorSlim.
The text was updated successfully, but these errors were encountered: