Juggernaut.Operators.Genserver (Juggernaut v0.4.0)

Copy Markdown View Source

Turns a GenServer callback's return into another valid one (Mutare genserver), in handle_call/3, handle_cast/2, handle_info/2 and handle_continue/2 of a module that uses or declares GenServer: {:reply, r, s} → {:noreply, s}; {:noreply, s} → {:stop, :normal, s}; {:stop, reason, s} → {:noreply, s}; {:stop, reason, reply, s} → {:reply, reply, s}. A trailing timeout or continue element is kept with :noreply.