I'm new to Erlang and I want to suspend in a function. I use receive with infinity timeout, my function looks like:
suspend() ->
receive
after
infinity->ok
end.
When I ran dialyzer tool, it return "Function has no local return". Should I replace this function with timer:sleep(infinity). For suspend, which one is better? Thank you so much.