[erlang-questions] I'm having a SNAFU moment: timer:sleep/1

Imants Cekusins imantc@REDACTED
Mon Jan 12 18:11:47 CET 2015

If the task is to spawn (not complete) a function at specified
intervals, timer:apply interval works just fine.

Just did a 3-module demo with a gen_server.

Interval: 1 ms. Run for 3, then 10 seconds.

Result nr of loops =:= expected number.

Email me for the code.

More information about the erlang-questions mailing list