{"action":"created","issue":{"url":"https://api.github.com/repos/dvlsg/async-csp/issues/3","labels_url":"https://api.github.com/repos/dvlsg/async-csp/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/dvlsg/async-csp/issues/3/comments","events_url":"https://api.github.com/repos/dvlsg/async-csp/issues/3/events","html_url":"https://github.com/dvlsg/async-csp/issues/3","id":118943469,"number":3,"title":"The \"alts\" method.","user":{"login":"trusktr","id":297678,"avatar_url":"https://avatars.githubusercontent.com/u/297678?v=3","gravatar_id":"","url":"https://api.github.com/users/trusktr","html_url":"https://github.com/trusktr","followers_url":"https://api.github.com/users/trusktr/followers","following_url":"https://api.github.com/users/trusktr/following{/other_user}","gists_url":"https://api.github.com/users/trusktr/gists{/gist_id}","starred_url":"https://api.github.com/users/trusktr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusktr/subscriptions","organizations_url":"https://api.github.com/users/trusktr/orgs","repos_url":"https://api.github.com/users/trusktr/repos","events_url":"https://api.github.com/users/trusktr/events{/privacy}","received_events_url":"https://api.github.com/users/trusktr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dvlsg/async-csp/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-25T23:51:21Z","updated_at":"2015-11-26T04:10:01Z","closed_at":null,"body":"In this [article section](http://jlongster.com/Taming-the-Asynchronous-Beast-with-CSP-in-JavaScript#Taming-User-Interfac) (which uses a generator-based lib instead of async/await) they use an `alts` method in the second example.\r\n\r\nHow might we do the same as that `alts` example with async-csp? Here's [`js-csp`'s alts docs](https://github.com/ubolonton/js-csp/blob/master/doc/basic.md#yield-altsoperations-options)."},"comment":{"url":"https://api.github.com/repos/dvlsg/async-csp/issues/comments/159798889","html_url":"https://github.com/dvlsg/async-csp/issues/3#issuecomment-159798889","issue_url":"https://api.github.com/repos/dvlsg/async-csp/issues/3","id":159798889,"user":{"login":"dvlsg","id":4721566,"avatar_url":"https://avatars.githubusercontent.com/u/4721566?v=3","gravatar_id":"","url":"https://api.github.com/users/dvlsg","html_url":"https://github.com/dvlsg","followers_url":"https://api.github.com/users/dvlsg/followers","following_url":"https://api.github.com/users/dvlsg/following{/other_user}","gists_url":"https://api.github.com/users/dvlsg/gists{/gist_id}","starred_url":"https://api.github.com/users/dvlsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvlsg/subscriptions","organizations_url":"https://api.github.com/users/dvlsg/orgs","repos_url":"https://api.github.com/users/dvlsg/repos","events_url":"https://api.github.com/users/dvlsg/events{/privacy}","received_events_url":"https://api.github.com/users/dvlsg/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T04:10:01Z","updated_at":"2015-11-26T04:10:01Z","body":"Looks like `alts` may be from [clojure](http://blog.drewolson.org/clojure-go-comparison/) perhaps? I don't have any experience with clojure, so I'm not 100% on that.\r\n\r\nI am definitely leaning towards `race` (if it gets added), due to the already existing/upcoming `Promise.race()` which strikes me as similar (functionality-wise, anyways)."}}