Using Fibers without yield

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Fri Nov 28 07:14:42 UTC 2025


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.


More information about the Digitalmars-d-learn mailing list