You could do something like
def handle_call(msg, from, state) do
spawn(fn ->
reply = do_stuff_with_message(msg)
GenServer.reply(from, reply)
end)
{:noreply, state}
end
You could do something like
def handle_call(msg, from, state) do
spawn(fn ->
reply = do_stuff_with_message(msg)
GenServer.reply(from, reply)
end)
{:noreply, state}
end