This was by far the most understandable introduction to genservers I ever seen 👏
@jakmartin0096 жыл бұрын
This is one of best video in simple language and example. Thanks
@delamberty Жыл бұрын
This explained to me more of gen server than I've been reading
@muha85982 жыл бұрын
Wow, this simplified GenServer for me. Thanks!
@smvhdi5 жыл бұрын
I had problem understanding the genServer in elixir GUIDES. This video make it simple for me
@danielsantiago114 жыл бұрын
Amazing content, thx so much
@unamed61364 жыл бұрын
i dont get the handle_call function at 04:42 ,where he is gettint list and list and returning it?
@elixircasts23324 жыл бұрын
The list here is just the state of the GenServer. When implementing a handle_call, you'll receive the current state as the 3rd argument. It's being returned with the :reply tuple on line 24.
@kawo6666 ай бұрын
It is my understanding that the init/start of the server creates a loop that awaits for the incoming calls. That loop holds ‘state’. The call function does not directly initiate/call the handle_call function, that’s why function arguments do not map one to one. It rather triggers its processing within the loop, which needs the ‘state’ argument in this case in the form of ‘list’.
@EduardoMartinez-dm5pp7 жыл бұрын
OH MY GOD This is just amazing! you make it so simple and easy to follow! I now want to make 2 different programs running at the same time, one being the client and the other the server. Do you have any example like that?
@elixircasts23327 жыл бұрын
Thank you for the kind words. I don't have any currently, but I love that idea and will put it my list. Thanks Eduardo!