payload: {"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/docs/issues/16238","repository_url":"https://api.github.com/repos/dotnet/docs","labels_url":"https://api.github.com/repos/dotnet/docs/issues/16238/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/docs/issues/16238/comments","events_url":"https://api.github.com/repos/dotnet/docs/issues/16238/events","html_url":"https://github.com/dotnet/docs/issues/16238","id":537486723,"node_id":"MDU6SXNzdWU1Mzc0ODY3MjM=","number":16238,"title":"What's the point of having \"var toast = await ToastBreadAsync(number);\"?","user":{"login":"c0dilla","id":6248637,"node_id":"MDQ6VXNlcjYyNDg2Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6248637?v=4","gravatar_id":"","url":"https://api.github.com/users/c0dilla","html_url":"https://github.com/c0dilla","followers_url":"https://api.github.com/users/c0dilla/followers","following_url":"https://api.github.com/users/c0dilla/following{/other_user}","gists_url":"https://api.github.com/users/c0dilla/gists{/gist_id}","starred_url":"https://api.github.com/users/c0dilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0dilla/subscriptions","organizations_url":"https://api.github.com/users/c0dilla/orgs","repos_url":"https://api.github.com/users/c0dilla/repos","events_url":"https://api.github.com/users/c0dilla/events{/privacy}","received_events_url":"https://api.github.com/users/c0dilla/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,"description":"C# language content"},{"id":918838446,"node_id":"MDU6TGFiZWw5MTg4Mzg0NDY=","url":"https://api.github.com/repos/dotnet/docs/labels/support-request","name":"support-request","color":"666600","default":false,"description":"Support-style question;customer needs help solving a problem [org][type][category]"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-12-13T11:02:34Z","updated_at":"2019-12-13T15:22:26Z","closed_at":"2019-12-13T15:22:25Z","author_association":"NONE","body":"Even more generally speaking, whats the point of having an async task in another async task, where it is immediately awaited for?\nconsidering the next code, When Main starts making the toast, it is already free to keep on running. When the toast is making the bread in hangs there anyway for the bread to be ready before applying the jam. So why would we make it an asynchronous task?\n\nprivate async void main()\n{\n    var toast = async MakeToast()\n    // ...\n}\n\nprivate async Task MakeToast()\n{\n    await MakeBread();\n    applyJam();\n}\n\nprivate async Task MakeBread()\n{\n    // ...\n}\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: 17d27a0d-c072-8c9f-7e31-3de60bee9ae8\n* Version Independent ID: e0c09794-e712-19ff-cb9f-12648d60d4f6\n* Content: [Asynchronous programming in C#](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/#feedback)\n* Content Source: [docs/csharp/programming-guide/concepts/async/index.md](https://github.com/dotnet/docs/blob/master/docs/csharp/programming-guide/concepts/async/index.md)\n* Product: **dotnet-csharp**\n* Technology: **csharp-async**\n* GitHub Login: @BillWagner\n* Microsoft Alias: **wiwagn**"}}
other: {"actor":{"display_login":"BillWagner"}}