{"action":"created","issue":{"url":"https://api.github.com/repos/base-n/koa-generator-examples/issues/9","labels_url":"https://api.github.com/repos/base-n/koa-generator-examples/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/base-n/koa-generator-examples/issues/9/comments","events_url":"https://api.github.com/repos/base-n/koa-generator-examples/issues/9/events","html_url":"https://github.com/base-n/koa-generator-examples/issues/9","id":121809215,"number":9,"title":"regenerator 貌似也支持async和await","user":{"login":"i5ting","id":3118295,"avatar_url":"https://avatars.githubusercontent.com/u/3118295?v=3","gravatar_id":"","url":"https://api.github.com/users/i5ting","html_url":"https://github.com/i5ting","followers_url":"https://api.github.com/users/i5ting/followers","following_url":"https://api.github.com/users/i5ting/following{/other_user}","gists_url":"https://api.github.com/users/i5ting/gists{/gist_id}","starred_url":"https://api.github.com/users/i5ting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i5ting/subscriptions","organizations_url":"https://api.github.com/users/i5ting/orgs","repos_url":"https://api.github.com/users/i5ting/repos","events_url":"https://api.github.com/users/i5ting/events{/privacy}","received_events_url":"https://api.github.com/users/i5ting/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-11T23:04:24Z","updated_at":"2015-12-12T01:59:47Z","closed_at":null,"body":"http://facebook.github.io/regenerator/"},"comment":{"url":"https://api.github.com/repos/base-n/koa-generator-examples/issues/comments/164096234","html_url":"https://github.com/base-n/koa-generator-examples/issues/9#issuecomment-164096234","issue_url":"https://api.github.com/repos/base-n/koa-generator-examples/issues/9","id":164096234,"user":{"login":"magicdawn","id":4067115,"avatar_url":"https://avatars.githubusercontent.com/u/4067115?v=3","gravatar_id":"","url":"https://api.github.com/users/magicdawn","html_url":"https://github.com/magicdawn","followers_url":"https://api.github.com/users/magicdawn/followers","following_url":"https://api.github.com/users/magicdawn/following{/other_user}","gists_url":"https://api.github.com/users/magicdawn/gists{/gist_id}","starred_url":"https://api.github.com/users/magicdawn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicdawn/subscriptions","organizations_url":"https://api.github.com/users/magicdawn/orgs","repos_url":"https://api.github.com/users/magicdawn/repos","events_url":"https://api.github.com/users/magicdawn/events{/privacy}","received_events_url":"https://api.github.com/users/magicdawn/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T01:59:47Z","updated_at":"2015-12-12T01:59:47Z","body":"是啊\r\n\r\n```js\r\nfunction sleep(ms){\r\n  return new Promise((resolve, rehect) => {\r\n    setTimeout(resolve, ms);\r\n  });\r\n}\r\n\r\nasync function demoAsync(){\r\n  console.log('now 1 %s', Date.now());\r\n  await sleep(1000);\r\n  console.log('now 2 %s', Date.now());\r\n}\r\n    \r\ndemoAsync();\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4067115/11759540/095eb3be-a0b7-11e5-8c83-391f08bc603a.png)\r\n"}}