Elixir Programming Language Related Syntax > GenServer Syntax > Flashcards
define init w/o continue
@impl GenServerdef init(stack) do
end
define handle_call w/ a reply
@impl GenServerdef handle_call(:pop, _from, [h | t] = _state) do
define handle_cast
@impl GenServerdef handle_cast({:push, elem}, state) do