Where is sleep()?

Ryan David Sheasby ryan27968 at gmail.com
Sun Dec 17 08:44:16 UTC 2017


On Sunday, 17 December 2017 at 08:40:53 UTC, rikki cattermole 
wrote:
> On 17/12/2017 8:32 AM, Ryan David Sheasby wrote:
>> Hey guys. First time poster here. I've searched high and low 
>> but can't seem to find a simple sleep/delay/wait/pause 
>> function in the core or in phobos. The most recent information 
>> I can find about it is this forum post from 12 years ago: 
>> http://forum.dlang.org/thread/avr99b$b8j$2@digitaldaemon.com 
>> In which they suggest using std.c.time which is now 
>> depreciated and seems to have been replaced by core.stdc.time 
>> which doesn't have any sleep functions... What am I missing?
>
> That link is not relevant to D.
>
> https://dlang.org/phobos/core_thread.html#.Thread.sleep

Crap sorry you're right. I pasted the wrong link. This is the one 
I was talking about: 
http://forum.dlang.org/thread/diuepu$2ebg$1@digitaldaemon.com


More information about the Digitalmars-d-learn mailing list