📜 ⬆️ ⬇️

Cheat Sheet by OTP (Erlang)

Probably many who began to study the Erlang and the Open Telecom Platform (OTP), it was not easy to remember all the possible settings of the supervisor or the gene server, as well as the order of the incoming arguments and the format of the returned values. The main difficulty lies in the fact that the description of any process, whether it is the initialization of the supervisor or a synchronous call to the gene server, is in different parts of the same documentation page. At the very beginning of OTP, such navigation leads to a loss of context and slow learning. Not finding the cheat sheet on the OTP on the Internet, I had to create my own. I hope she will help you in learning (all pictures in English).



Supervisor


Initialization



Gene server


Initialization



Synchronous operation



Asynchronous operation



Info message



Shutdown



Charts in svg format, as well as in html for editing with draw.io are in the https://github.com/Telichkin/otp_cheatsheet repository. I would welcome comments and pool requests with ideas for improving the cheat sheet.


')

Source: https://habr.com/ru/post/346252/


All Articles