{"action":"created","issue":{"url":"https://api.github.com/repos/democracyworks/bifrost/issues/4","repository_url":"https://api.github.com/repos/democracyworks/bifrost","labels_url":"https://api.github.com/repos/democracyworks/bifrost/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/democracyworks/bifrost/issues/4/comments","events_url":"https://api.github.com/repos/democracyworks/bifrost/issues/4/events","html_url":"https://github.com/democracyworks/bifrost/pull/4","id":138226990,"number":4,"title":"Make bifrost use async fns.","user":{"login":"ericnormand","id":116172,"avatar_url":"https://avatars.githubusercontent.com/u/116172?v=3","gravatar_id":"","url":"https://api.github.com/users/ericnormand","html_url":"https://github.com/ericnormand","followers_url":"https://api.github.com/users/ericnormand/followers","following_url":"https://api.github.com/users/ericnormand/following{/other_user}","gists_url":"https://api.github.com/users/ericnormand/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnormand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnormand/subscriptions","organizations_url":"https://api.github.com/users/ericnormand/orgs","repos_url":"https://api.github.com/users/ericnormand/repos","events_url":"https://api.github.com/users/ericnormand/events{/privacy}","received_events_url":"https://api.github.com/users/ericnormand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-03T16:30:32Z","updated_at":"2016-03-03T19:34:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/democracyworks/bifrost/pulls/4","html_url":"https://github.com/democracyworks/bifrost/pull/4","diff_url":"https://github.com/democracyworks/bifrost/pull/4.diff","patch_url":"https://github.com/democracyworks/bifrost/pull/4.patch"},"body":"Async fns are fns that return a channel that will have the response. This now depends less on Kehaar. It was never an explicit dependency, but it did rely on using the same message format as Kehaar (`[response-channel message]`). Now it works with any function of one argument (the message) that returns a channel that will have the response on it."},"comment":{"url":"https://api.github.com/repos/democracyworks/bifrost/issues/comments/191927885","html_url":"https://github.com/democracyworks/bifrost/pull/4#issuecomment-191927885","issue_url":"https://api.github.com/repos/democracyworks/bifrost/issues/4","id":191927885,"user":{"login":"cap10morgan","id":59748,"avatar_url":"https://avatars.githubusercontent.com/u/59748?v=3","gravatar_id":"","url":"https://api.github.com/users/cap10morgan","html_url":"https://github.com/cap10morgan","followers_url":"https://api.github.com/users/cap10morgan/followers","following_url":"https://api.github.com/users/cap10morgan/following{/other_user}","gists_url":"https://api.github.com/users/cap10morgan/gists{/gist_id}","starred_url":"https://api.github.com/users/cap10morgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cap10morgan/subscriptions","organizations_url":"https://api.github.com/users/cap10morgan/orgs","repos_url":"https://api.github.com/users/cap10morgan/repos","events_url":"https://api.github.com/users/cap10morgan/events{/privacy}","received_events_url":"https://api.github.com/users/cap10morgan/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T19:34:54Z","updated_at":"2016-03-03T19:34:54Z","body":"Ah, I see. The new first line makes it clearer (`(power/defonce-external-service` wasn't showing up before).\r\n\r\nYeah, this seems good. I might prefer renaming `bifrost.core/async-interceptor` to `bifrost.core/interceptor` now, but that's a small thing.\r\n\r\nI guess the response channel keys in the context would now be random gensyms, huh? So it would be hard to trace them back to what endpoint they're handling. I'm not sure how big of a deal that is, though.\r\n\r\nCan you update the README too (fine to wait for a final LGTM; just wanted to note it while I was thinking about it)?\r\n\r\n@tie-rack I'd be curious what you think of this change?"}}