4 ms·
An interesting thing: https://github.com/crystal-lang/crystal/blob/master/src/concurrent.cr#L31-L57 https://github.com/crystal-lang/crystal/blob/master/src/conc
by oelmekki 10y ago
An interesting thing: https://github.com/crystal-lang/crystal/blob/master/src/concurrent.cr#L31-L57 https://github.com/crystal-lang/crystal/blob/master/src/conc...
Looks like they took the Fiber concept of ruby and made it into something like goroutines, with channels handling.
- sdogruyol 10y agoYou can take a look at Crystal for Rubyists (http://www.crystalforrubyists.com/book/chapter-08.html http://www.crystalforrubyists.com/book/chapter-08.html) for more info on Channels and Fibers.
- oelmekki 10y agoActually, I'm now a golang developer, so there are no big surprise, here ;)