Ulf Wiger (AL/EAB)
Tue Apr 25 15:37:14 CEST 2006
No, it will just fall through.
timer:sleep(0) is equivalent to
after 0 -> ok
There is nothing to wait for, so the process won't sleep.
[mailto:owner-erlang-questions@REDACTED] On Behalf Of Yani Dzhurov
Sent: den 25 april 2006 14:35
Subject: process sleeps
I wondered whether timer:sleep(0) would cause a process to sleep
or it will just pass it ?
For instance if I have spawned process with fun();
Would the process sleep after baz(), or not ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions