[erlang-questions] writing a delay loop without now()

Matthew Dempsky matthew@REDACTED
Wed Feb 18 04:31:30 CET 2009


On Tue, Feb 17, 2009 at 5:32 PM, Paul Fisher <pfisher@REDACTED> wrote:
> sleep( Milliseconds ) ->
>     receive after Milliseconds -> ok end.

That's exactly how timer:sleep/1 is implemented, which he already mentioned.



More information about the erlang-questions mailing list