We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RoomChannel and the README use trap_exit
Process.flag(:trap_exit, true)
https://github.com/chrismccord/phoenix_chat_example/blob/master/web/channels/room_channel.ex#L16
From the Phoenix documentation:
Similar to GenServer, it would also be possible :trap_exit to guarantee that terminate/2 is invoked. This practice is not encouraged though.
So what should this code be doing instead?
The text was updated successfully, but these errors were encountered:
I second this question. When I've been reading the code, I also got curious about it.
Sorry, something went wrong.
No branches or pull requests
RoomChannel and the README use trap_exit
https://github.com/chrismccord/phoenix_chat_example/blob/master/web/channels/room_channel.ex#L16
From the Phoenix documentation:
So what should this code be doing instead?
The text was updated successfully, but these errors were encountered: