Yieldable function?

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 13 16:06:39 PDT 2015


On 08/13/2015 03:36 PM, Tofu Ninja wrote:
> On Thursday, 13 August 2015 at 22:29:17 UTC, MrSmith wrote:
>> http://dlang.org/phobos/core_thread.html#.Fiber
>
> Man I feel like I saw that before but when I went looking for it I
> couldn't find it. Didn't think to check in core. :/
>
> Welp that solves my question, thanks :D

std.concurrency.Generator can present the yielded values as a range:

 
http://ddili.org/ders/d.en/fibers.html#ix_fibers.Generator,%20std.concurrency

Ali



More information about the Digitalmars-d-learn mailing list