{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/docs/issues/7038","repository_url":"https://api.github.com/repos/dotnet/docs","labels_url":"https://api.github.com/repos/dotnet/docs/issues/7038/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/docs/issues/7038/comments","events_url":"https://api.github.com/repos/dotnet/docs/issues/7038/events","html_url":"https://github.com/dotnet/docs/issues/7038","id":351008712,"node_id":"MDU6SXNzdWUzNTEwMDg3MTI=","number":7038,"title":"Your example code appears to be wrong.","user":{"login":"MarqueIV","id":897883,"node_id":"MDQ6VXNlcjg5Nzg4Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/897883?v=4","gravatar_id":"","url":"https://api.github.com/users/MarqueIV","html_url":"https://github.com/MarqueIV","followers_url":"https://api.github.com/users/MarqueIV/followers","following_url":"https://api.github.com/users/MarqueIV/following{/other_user}","gists_url":"https://api.github.com/users/MarqueIV/gists{/gist_id}","starred_url":"https://api.github.com/users/MarqueIV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarqueIV/subscriptions","organizations_url":"https://api.github.com/users/MarqueIV/orgs","repos_url":"https://api.github.com/users/MarqueIV/repos","events_url":"https://api.github.com/users/MarqueIV/events{/privacy}","received_events_url":"https://api.github.com/users/MarqueIV/received_events","type":"User","site_admin":false},"labels":[{"id":429768030,"node_id":"MDU6TGFiZWw0Mjk3NjgwMzA=","url":"https://api.github.com/repos/dotnet/docs/labels/:books:%20Area%20-%20C%23%20Guide","name":":books: Area - C# Guide","color":"3d5c8e","default":false},{"id":961699485,"node_id":"MDU6TGFiZWw5NjE2OTk0ODU=","url":"https://api.github.com/repos/dotnet/docs/labels/:card_file_box:%20Technology%20-%20Async%20Task","name":":card_file_box: Technology - Async Task","color":"53b0db","default":false},{"id":325357852,"node_id":"MDU6TGFiZWwzMjUzNTc4NTI=","url":"https://api.github.com/repos/dotnet/docs/labels/P2","name":"P2","color":"0e8a16","default":false},{"id":918775588,"node_id":"MDU6TGFiZWw5MTg3NzU1ODg=","url":"https://api.github.com/repos/dotnet/docs/labels/Source%20-%20Docs.ms","name":"Source - Docs.ms","color":"77f966","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotnet/docs/milestones/3","html_url":"https://github.com/dotnet/docs/milestone/3","labels_url":"https://api.github.com/repos/dotnet/docs/milestones/3/labels","id":1605922,"node_id":"MDk6TWlsZXN0b25lMTYwNTkyMg==","number":3,"title":"Backlog","description":"This item is used to group items that are to be triaged for a concrete milestone that has a data associated. ","creator":{"login":"blackdwarf","id":3115004,"node_id":"MDQ6VXNlcjMxMTUwMDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3115004?v=4","gravatar_id":"","url":"https://api.github.com/users/blackdwarf","html_url":"https://github.com/blackdwarf","followers_url":"https://api.github.com/users/blackdwarf/followers","following_url":"https://api.github.com/users/blackdwarf/following{/other_user}","gists_url":"https://api.github.com/users/blackdwarf/gists{/gist_id}","starred_url":"https://api.github.com/users/blackdwarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackdwarf/subscriptions","organizations_url":"https://api.github.com/users/blackdwarf/orgs","repos_url":"https://api.github.com/users/blackdwarf/repos","events_url":"https://api.github.com/users/blackdwarf/events{/privacy}","received_events_url":"https://api.github.com/users/blackdwarf/received_events","type":"User","site_admin":false},"open_issues":490,"closed_issues":71,"state":"open","created_at":"2016-02-25T19:28:41Z","updated_at":"2018-08-22T22:41:59Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-08-16T00:00:50Z","updated_at":"2018-08-24T14:15:53Z","closed_at":null,"author_association":"NONE","body":"Reading your example code for the void return type, I'm not sure it does what you think.  If you add that to a console app and run it, you get wildly inaccurate results.  Resetting the counter in the 'event handler' (while declaring an actual event handler that has nothing to do with the code) is just confusing.  I would revisit it with a better example. It doesn't clearly show what you think it does.\n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: d055727b-c97c-4d25-39b8-a4d3f21d0444\n* Version Independent ID: c8a7c6f1-8ee1-5030-db12-3db65a968501\n* Content: [Async Return Types (C#)](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/async-return-types)\n* Content Source: [docs/csharp/programming-guide/concepts/async/async-return-types.md](https://github.com/dotnet/docs/blob/master/docs/csharp/programming-guide/concepts/async/async-return-types.md)\n* Product: **dotnet-csharp**\n* GitHub Login: @BillWagner\n* Microsoft Alias: **wiwagn**"},"comment":{"url":"https://api.github.com/repos/dotnet/docs/issues/comments/415772168","html_url":"https://github.com/dotnet/docs/issues/7038#issuecomment-415772168","issue_url":"https://api.github.com/repos/dotnet/docs/issues/7038","id":415772168,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTc3MjE2OA==","user":{"login":"MarqueIV","id":897883,"node_id":"MDQ6VXNlcjg5Nzg4Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/897883?v=4","gravatar_id":"","url":"https://api.github.com/users/MarqueIV","html_url":"https://github.com/MarqueIV","followers_url":"https://api.github.com/users/MarqueIV/followers","following_url":"https://api.github.com/users/MarqueIV/following{/other_user}","gists_url":"https://api.github.com/users/MarqueIV/gists{/gist_id}","starred_url":"https://api.github.com/users/MarqueIV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarqueIV/subscriptions","organizations_url":"https://api.github.com/users/MarqueIV/orgs","repos_url":"https://api.github.com/users/MarqueIV/repos","events_url":"https://api.github.com/users/MarqueIV/events{/privacy}","received_events_url":"https://api.github.com/users/MarqueIV/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T14:15:53Z","updated_at":"2018-08-24T14:15:53Z","author_association":"NONE","body":"No worries, and thanks. I had decided to dive into the Async features and was relying on this documentation and the more I read it and tried to apply it to my code, the more confusing it got. It wasn't until I created a new project myself with that sample code that the issues with the code started to reveal itself.  In a way the time I took to unwind that code, then play around with it until it actually worked *did* help me learn it better, but unfortunately it also showed me just how far off that documentation was.  While I'm all for experimenting to learn, I can't say that should apply to the documentation too! :)"}}
{"actor":{"display_login":"MarqueIV"}}