{"action":"created","issue":{"url":"https://api.github.com/repos/tc39/ecmascript-asyncawait/issues/78","labels_url":"https://api.github.com/repos/tc39/ecmascript-asyncawait/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/tc39/ecmascript-asyncawait/issues/78/comments","events_url":"https://api.github.com/repos/tc39/ecmascript-asyncawait/issues/78/events","html_url":"https://github.com/tc39/ecmascript-asyncawait/issues/78","id":122017762,"number":78,"title":"Programmatically check if function is async","user":{"login":"christianalfoni","id":3956929,"avatar_url":"https://avatars.githubusercontent.com/u/3956929?v=3","gravatar_id":"","url":"https://api.github.com/users/christianalfoni","html_url":"https://github.com/christianalfoni","followers_url":"https://api.github.com/users/christianalfoni/followers","following_url":"https://api.github.com/users/christianalfoni/following{/other_user}","gists_url":"https://api.github.com/users/christianalfoni/gists{/gist_id}","starred_url":"https://api.github.com/users/christianalfoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianalfoni/subscriptions","organizations_url":"https://api.github.com/users/christianalfoni/orgs","repos_url":"https://api.github.com/users/christianalfoni/repos","events_url":"https://api.github.com/users/christianalfoni/events{/privacy}","received_events_url":"https://api.github.com/users/christianalfoni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-14T10:46:21Z","updated_at":"2015-12-14T15:29:52Z","closed_at":null,"body":"Maybe this is part of the spec, but I was not able to find it in the text.\r\n\r\nWill it be possible to check if a function is an async function? This would be beneficial developing libraries around async functions. Just to make my point clear with pseudo code:\r\n\r\n```js\r\nasync myFunc() {\r\n\r\n}\r\n\r\nmyFync.isAsync // true\r\n```"},"comment":{"url":"https://api.github.com/repos/tc39/ecmascript-asyncawait/issues/comments/164467449","html_url":"https://github.com/tc39/ecmascript-asyncawait/issues/78#issuecomment-164467449","issue_url":"https://api.github.com/repos/tc39/ecmascript-asyncawait/issues/78","id":164467449,"user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T15:29:52Z","updated_at":"2015-12-14T15:29:52Z","body":"It is bad practice for a technical reason, as explained above. There is no difference between async functions and other promise returning functions, so libraries that try to distinguish them are technically unsound. "}}