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
A thing that i have done many times is to wrap the Websocket connection in a struct, together with a Mutex in a custom struct and making a few methods 'public'. Therefore, you have a 'LockedConn' struct which hides the lock completely.
Is there an existing issue for this?
Current Behavior
I used about 10 goroutines to execute the conn.WriteJSON method concurrently, and the following panic occurred:
Can't conn.WriteJSON be executed concurrently?
Expected Behavior
There should not be a panic that causes the program to terminate.
Steps To Reproduce
The access is to a third-party API and no recurrence pattern has been found yet.
Anything else?
No response
The text was updated successfully, but these errors were encountered: