Where is sleep()?
Adam D. Ruppe
destructionator at gmail.com
Sun Dec 17 18:53:51 UTC 2017
On Sunday, 17 December 2017 at 17:01:37 UTC, Steven Schveighoffer
wrote:
> I searched for "sleep" in "library", core.thread was the first
> result.
Yeah, me too (followed by core.time, std.datetime.stopwatch, and
std.datetime...), but it isn't obvious any of them are actual
winners.
If you already basically know what you're looking for, it can
refresh, but if it is first time
core.thread - D Programming Language
https://dlang.org/phobos/core_thread.html
Jump to: getAll · getThis · id · isDaemon · isRunning · join ·
name · opApply · priority · PRIORITY_DEFAULT · PRIORITY_MAX ·
PRIORITY_MIN · sleep · start · this · yield. class Thread ;. This
class encapsulates all threading functionality for the D
programming language. As thread manipulation is a required
facility for garbage ...
doesn't really indicate it was a good hit and when the click the
page, even finding that jumplist takes a second search. This is
one of the better results I tend to get off the official site.
Whereas mine gives:
http://dpldocs.info/sleep
core.thread.Thread.sleep
Suspends the calling thread for at least the supplied period.
This may result in multiple OS calls if period is greater than
the maximum sleep duration supported by the operating system.
immediately, right there on the result page. As well as other
hits such as vibe.d's sleep.
More information about the Digitalmars-d-learn
mailing list