Fibers vs Async/await

Sean Kelly sean at invisibleduck.org
Mon Jun 17 10:55:33 PDT 2013


Fibers don't actually execute asynchronously.  They represent an alternate execution context (code and stack) but are executed by the thread that calls them, and control is returned when they either yield or complete.  This video is a good introduction to fibers:

http://vimeo.com/1873969

On Jun 15, 2013, at 10:54 AM, Jonathan Dunlap <jadit2 at gmail.com> wrote:

> *bump*
> 
> On Tuesday, 11 June 2013 at 19:57:27 UTC, Jonathan Dunlap wrote:
>> I was listening to one of the DConf sessions and where was some talk about implementing async from C# into D someday in the far future. Recently I learned about D's fibers... and it looks like the same thing to me. What are the major differences in principle?
>> 
>> -Jonathan
>> @jonathanAdunlap
> 



More information about the Digitalmars-d-learn mailing list