<div dir="ltr"><div><div>Hello,<br><br>I'm looking at some code that was written where a user uses a behaviour of gen_server and then uses a process_flag(trap_exit, true). To me, this seems like a supervisor behaviour would work better.<br>
<br></div>What would be a better approach in this case? To declare this module a supervisor? Is it possible (sensible? logical?) to give the same module gen_server and supervisor behaviours?<br><br></div>Thanks in advance!<br>
</div>