On 18/08/2024 7:49 AM, Vinod K Chandran wrote:
On Saturday, 17 August 2024 at 17:31:53 UTC, Steven Schveighoffer wrote:

Go to dlang.org, select dicumentation, then library reference.

Pick any module, click on it

In the upper right, switch the docs from stable to ddox

Now you can use the search bar and it is interactive. Typing in indexOf found it right away.


Steve, We need a better search system. For example, I needed something like the `thread.sleep()` in .net today. All I want is a delay function which simulate some work load in current thread. But sadly, it is difficult to find.
-kcvinker

https://dlang.org/phobos/core_thread_osthread.html#.Thread.sleep

Worth noting is that sleeping is not equivalent to performing work. It's the exact opposite, the lack of work.

If you want to simulate work being done, use a loop with a stop watch to determine how much time has progressed.

  • Re: How to find ... monkyyy via Digitalmars-d-learn
    • Re: How to ... Bruce via Digitalmars-d-learn
    • Re: How to ... Ron Tarrant via Digitalmars-d-learn
    • Re: How to ... Renato Athaydes via Digitalmars-d-learn
    • Re: How to ... Lance Bachmeier via Digitalmars-d-learn
    • Re: How to ... Steven Schveighoffer via Digitalmars-d-learn
      • Re: How... Vinod K Chandran via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... Vinod K Chandran via Digitalmars-d-learn
        • Re:... IchorDev via Digitalmars-d-learn
          • ... Vinod K Chandran via Digitalmars-d-learn
      • Re: How... Ron Tarrant via Digitalmars-d-learn
        • Re:... Renato Athaydes via Digitalmars-d-learn
      • Re: How... Andy Valencia via Digitalmars-d-learn
        • Re:... IchorDev via Digitalmars-d-learn
          • ... Andy Valencia via Digitalmars-d-learn
            • ... IchorDev via Digitalmars-d-learn

Reply via email to