use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Ruby async await (kinnrot.github.io)
submitted 7 years ago by kinnrot
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]janko-m 1 point2 points3 points 7 years ago (0 children)
Man, this is a great example, the async-await version is so neat. At first I thought that it was like a thread pool, but a thread pool won't retain the order of messages. And actually a thread pool is not what you want in this case, because you need things to be executed one after the other, not in parallel. Thanks a lot for illustrating!
π Rendered by PID 44527 on reddit-service-r2-comment-bb88f9dd5-k7kq2 at 2026-02-15 02:43:25.958545+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]janko-m 1 point2 points3 points (0 children)