The use of this dependency is completely unnecessary because, when you get this:
def handle_call(msg, from, state) do
Task.start(fn ->
# perform some calculations
GenServer.reply(from, reply)
end)
{:noreply, state}
end
And that's all. The use of this code is overkill for a simple use case which is included inside of GenServer.
The use of this dependency is completely unnecessary because, when you get this:
And that's all. The use of this code is overkill for a simple use case which is included inside of GenServer.