Using Fibers without yield

Serg Gini kornburn at yandex.ru
Fri Nov 28 08:06:00 UTC 2025


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


More information about the Digitalmars-d-learn mailing list