Achieving code swapping in Erlang's gen_server

前端 未结 5 775
北恋
北恋 2020-12-04 09:02

I am looking to make use of Erlang\'s hot code swapping feature on a gen_server, so that I don\'t have to restart it. How should I do that? When I searched, all I could find

5条回答
  •  自闭症患者
    2020-12-04 09:52

    If you want to do it the right way, which is highly recommended, then you need to read up on the use of OTP Supervisors and Applications.

    You could do worse than to read the OTP Design Principles User's Guide here :

    http://www.erlang.org/doc/design_principles/users_guide.html

提交回复
热议问题