Way to pass params to a function passed to a fiber?

Salih Dincer salihdb at hotmail.com
Mon Oct 3 10:28:57 UTC 2022


On Monday, 3 October 2022 at 08:10:43 UTC, Bienlein wrote:
> In the code above there is no way to add parameters to myFunc. 
> The construcor of class Fiber does not allow for a function to 
> be passed that has parameters (unlike for the spawn function 
> when starting a thread).

You try std.functional...

SDB at 79


More information about the Digitalmars-d-learn mailing list