GenServer Syntax Flashcards

1
Q

define init w/o continue

A

@impl GenServer
def init(stack) do

end

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

define handle_call w/ a reply

A

@impl GenServer
def handle_call(:pop, _from, [h | t] = _state) do

end

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

define handle_cast

A

@impl GenServer
def handle_cast({:push, elem}, state) do

end

How well did you know this?
1
Not at all
2
3
4
5
Perfectly