The Process 4.2: Corner cases for GenServer.call

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 7

  • @E-xyza
    @E-xyza  Месяц назад +2

    Note that the implemented function is NOT a fully faithful recreation of what actually happens inside a GenServer.call function. For that, read the source! github.com/erlang/otp/blob/ee9628e7ed09ef02e767994a6da5b7a225316aaa/lib/stdlib/src/gen.erl#L219-L279
    In fact, the code that I've written as-is contains a fatal race condition (this is why you shouldn't reinvent GenServers)! See if you can find it.

  • @jeremybrayton460
    @jeremybrayton460 Месяц назад

    I love the way you break things down. Unpacking the inside vs outside of a GenServer brings so much into focus. Thanks ❤

  • @elixirfun
    @elixirfun Месяц назад

    I wish developers from "other programming environments" saw this, digested it - and fell in love with the BEAM. Thanks for educating us on these details!

  • @tranquillityEnthusiast
    @tranquillityEnthusiast Месяц назад +1

    Sir love your videos, keep making them

  • @bradhanks7837
    @bradhanks7837 Месяц назад +1

    Love these

  • @elixirfun
    @elixirfun Месяц назад

    It's such an important detail that the calling process exits, not the overloaded GenServer.

  • @apodrx836
    @apodrx836 Месяц назад

    excellent video