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
I have a gen server that calls other module with Websockex.send_frame, sometimes send_frame exits and parent gen server process exits too, so the only way I can handle it is to use try/catch :exit.
The spec of send_frame tells us that it returns result tuple, but it can exit in abnormal situation. I think there should be two variants: send_frame - never exits and returns :ok/:error, send_frame! - returns or exits.
I have a gen server that calls other module with
Websockex.send_frame
, sometimes send_frame exits and parent gen server process exits too, so the only way I can handle it is to usetry/catch :exit
.The spec of
send_frame
tells us that it returns result tuple, but it can exit in abnormal situation. I think there should be two variants:send_frame
- never exits and returns:ok/:error
, send_frame! - returns or exits.websockex/lib/websockex.ex
Line 413 in ce7064e
The text was updated successfully, but these errors were encountered: