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

Paul Fisher pfisher@REDACTED
Wed Feb 18 13:48:55 CET 2009


Matthew Dempsky wrote:
> 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.

mea culpa! I did not look, and apologize profusely!


--
paul



More information about the erlang-questions mailing list