goroutines vs vibe.d tasks

Jack Applegame via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 30 12:52:22 PDT 2015


On Tuesday, 30 June 2015 at 17:37:38 UTC, Atila Neves wrote:
> Sleep will almost certainly pause and block the fiber. Vibe.d 
> only switches between them when there's IO to be done or 
> something else from the event loop.
Sleep blocks the fiber, but not the event loop. Because it isn't 
core.thread.Thread.sleep, but vibe.core.core.sleep - 
http://vibed.org/api/vibe.core.core/sleep



More information about the Digitalmars-d-learn mailing list