Fiber is better than go's goroutine?

Sean Kelly via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 28 07:20:47 PDT 2014


On Tuesday, 28 October 2014 at 07:59:32 UTC, Martin Nowak wrote:
> On Monday, 27 October 2014 at 16:32:25 UTC, Sean Kelly wrote:
> That's the reason why the await adapter is so powerful.
> It's should be possible to await a promise (future) to let the 
> scheduler know that it should resume the Fiber only after the 
> promise (future) was set.

What's in the guts of the await adapter is the important part.  I 
already have that from a functional standpoint within the 
Scheduler, but the thread is basically polling state, which is 
terribly inefficient.


More information about the Digitalmars-d mailing list