[erlang-questions] erlang:send_after/3 questions
Fri Sep 21 22:38:02 CEST 2012
It's time to reveal some erlang:send_after/3 mysteries I think :)
1. When is the message term stored? It's obviously not the callee process,
and it doesn't seem to be the target process (I don't see a process part
that could store it). Is it dangerous to pass large messages through it?
2. What happens when the target process dies before send_after/3 occurs?
The returned ref makes me think that we actually spawn some sort of a
monitor here, and we just stop waiting if the process died by whatever
reason. Is that correct?
3. Is spawning a lot of send_after's or timers a dangerous idea? In case of
using timer module, we'll just lose some started timers due to port
restart. But something tells me that crash of erlang internal timers is a
somewhat more dangerous thing that might even crash the VM.
Any links or facts would be very appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions