Intro to GenServer

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 2024

ความคิดเห็น • 12

  • @Abbild1
    @Abbild1 4 ปีที่แล้ว +8

    This was by far the most understandable introduction to genservers I ever seen 👏

  • @delamberty
    @delamberty ปีที่แล้ว +1

    This explained to me more of gen server than I've been reading

  • @jakmartin009
    @jakmartin009 6 ปีที่แล้ว +4

    This is one of best video in simple language and example. Thanks

  • @salehmo66
    @salehmo66 5 ปีที่แล้ว +3

    I had problem understanding the genServer in elixir GUIDES. This video make it simple for me

  • @muha8598
    @muha8598 ปีที่แล้ว

    Wow, this simplified GenServer for me. Thanks!

  • @danielsantiago11
    @danielsantiago11 4 ปีที่แล้ว

    Amazing content, thx so much

  • @EduardoMartinez-dm5pp
    @EduardoMartinez-dm5pp 6 ปีที่แล้ว +3

    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?

    • @elixircasts2332
      @elixircasts2332  6 ปีที่แล้ว +2

      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!

  • @unamed6136
    @unamed6136 4 ปีที่แล้ว

    i dont get the handle_call function at 04:42 ,where he is gettint list and list and returning it?

    • @elixircasts2332
      @elixircasts2332  4 ปีที่แล้ว +2

      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.

    • @kawo666
      @kawo666 2 หลายเดือนก่อน

      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’.

  • @BelgianNoise
    @BelgianNoise 4 ปีที่แล้ว

    didnt enjoy, usefull tho