www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - core.thread sleep(long period)

reply "Damian" <damianday hotmail.co.uk> writes:
Scheduled for depreciation December 2012? as this been overlooked 
or is it not depreciated anymore?

core.thread
static void sleep(long period);
Mar 08 2013
next sibling parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Sat, Mar 09, 2013 at 04:26:38AM +0100, Damian wrote:
 Scheduled for depreciation December 2012? as this been overlooked or
 is it not depreciated anymore?
 
 core.thread
 static void sleep(long period);
Probably nobody has updated the code yet, but it *is* still deprecated, and will be removed any time now. T -- Freedom: (n.) Man's self-given right to be enslaved by his own depravity.
Mar 08 2013
prev sibling next sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 3/9/13, Damian <damianday hotmail.co.uk> wrote:
 Scheduled for depreciation December 2012? as this been overlooked
 or is it not depreciated anymore?

 core.thread
 static void sleep(long period);
It's being removed soon: https://github.com/D-Programming-Language/phobos/pull/1176
Mar 08 2013
prev sibling parent Jonathan M Davis <jmdavisProg gmx.com> writes:
On Saturday, March 09, 2013 04:26:38 Damian wrote:
 Scheduled for depreciation December 2012? as this been overlooked
 or is it not depreciated anymore?
 
 core.thread
 static void sleep(long period);
Drat. I keep forgetting to look in druntime when moving stuff through the deprecation process. _No_ functions in druntime or Phobos (aside from those use to create durations) should be taking naked integral values. They should be taking Duration. If you ever see something in the docs which is scheduled for deprecation or deprecated, and the date given with it has passed, it's been missed, not purposefully left. If it had been purposefully left, any such notes would have been removed, and it wouldn't be marked as deprecated. - Jonathan M Davis
Mar 08 2013