{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/rpc/issues/29","labels_url":"https://api.github.com/repos/dart-lang/rpc/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/rpc/issues/29/comments","events_url":"https://api.github.com/repos/dart-lang/rpc/issues/29/events","html_url":"https://github.com/dart-lang/rpc/issues/29","id":64783628,"number":29,"title":"ApiMethod with async","user":{"login":"mmaquevice","id":679945,"avatar_url":"https://avatars.githubusercontent.com/u/679945?v=3","gravatar_id":"","url":"https://api.github.com/users/mmaquevice","html_url":"https://github.com/mmaquevice","followers_url":"https://api.github.com/users/mmaquevice/followers","following_url":"https://api.github.com/users/mmaquevice/following{/other_user}","gists_url":"https://api.github.com/users/mmaquevice/gists{/gist_id}","starred_url":"https://api.github.com/users/mmaquevice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmaquevice/subscriptions","organizations_url":"https://api.github.com/users/mmaquevice/orgs","repos_url":"https://api.github.com/users/mmaquevice/repos","events_url":"https://api.github.com/users/mmaquevice/events{/privacy}","received_events_url":"https://api.github.com/users/mmaquevice/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-27T15:24:18Z","updated_at":"2015-03-30T04:33:08Z","closed_at":null,"body":"Congrats for RPC ! :)\r\n\r\nAre you planning to support async api method ? \r\n\r\ne.g. : \r\n```dart\r\n@ApiMethod(path: 'myPath')\r\nMyResponse get(String id) async {\r\n...\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/dart-lang/rpc/issues/comments/87538590","html_url":"https://github.com/dart-lang/rpc/issues/29#issuecomment-87538590","issue_url":"https://api.github.com/repos/dart-lang/rpc/issues/29","id":87538590,"user":{"login":"cgarciae","id":5862228,"avatar_url":"https://avatars.githubusercontent.com/u/5862228?v=3","gravatar_id":"","url":"https://api.github.com/users/cgarciae","html_url":"https://github.com/cgarciae","followers_url":"https://api.github.com/users/cgarciae/followers","following_url":"https://api.github.com/users/cgarciae/following{/other_user}","gists_url":"https://api.github.com/users/cgarciae/gists{/gist_id}","starred_url":"https://api.github.com/users/cgarciae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgarciae/subscriptions","organizations_url":"https://api.github.com/users/cgarciae/orgs","repos_url":"https://api.github.com/users/cgarciae/repos","events_url":"https://api.github.com/users/cgarciae/events{/privacy}","received_events_url":"https://api.github.com/users/cgarciae/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T04:33:08Z","updated_at":"2015-03-30T04:33:08Z","body":"@mmaquevice your `MyRespose` is a `Future<SomeClass>` since its an async function. RPC already support returning futures. In Dart you can't distinguish a **sync** function that returns a `Future<A>`, from an **async** function that \"returns\" an `A`"}}