SpotifyApi thread safety #411
-
|
Is the following code thread safe? Various users will be queried using their accessToken in various threads. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
|
I'm pretty sure it is. Do you see any shared state? |
Beta Was this translation helpful? Give feedback.
-
|
I'm also experiencing concurrent problems with: The getUsersCurrentlyPlayingTrack return values are mostly correct, but it periodically returns another user's track. |
Beta Was this translation helpful? Give feedback.
-
|
I suspect the static DEFAULT_HTTP_MANAGER is causing incorrect concurrent results, but have no proof. Do you think the reuse of DEFAULT_HTTP_MANAGER would pose a problem to thread safety? |
Beta Was this translation helpful? Give feedback.
PR #412