receive do
{event} ->
IO.puts "event"
after
duration ->
IO.puts "duration or timeout"
end
i have a spawn process which is implemented like that. duration can be equal to 31536000000 ms which represents a year in ms. It works well for a day, a week, a month but not more. How can i get this thing work? the error I receive is
[error] Process #PID<0.295.0> raised an exception
** (ErlangError) erlang error: :timeout_value
Thank you for the help