On Friday, 28 November 2025 at 07:14:42 UTC, Richard (Rikki) Andrew Cattermole wrote:
Here is the source code: https://github.com/dlang/dmd/blob/master/druntime/src/core/thread/fiber/base.d

When you call the second fiber, the first is still executing as far as the call stack is concerned. It was never yielded.

D's Fiber is a primitive, it has no scheduler or dependency management.

It cannot do anything differently.

I find it is quite unintuitive saying "has no scheduler" when in std we have this https://dlang.org/library/std/concurrency/fiber_scheduler.html
  • Using Fibers wit... Unthread via Digitalmars-d-learn
    • Re: Using F... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Usi... Serg Gini via Digitalmars-d-learn

Reply via email to