{"action":"closed","issue":{"url":"https://api.github.com/repos/StephenClearyArchive/Nito.Asynchronous/issues/1","repository_url":"https://api.github.com/repos/StephenClearyArchive/Nito.Asynchronous","labels_url":"https://api.github.com/repos/StephenClearyArchive/Nito.Asynchronous/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/StephenClearyArchive/Nito.Asynchronous/issues/1/comments","events_url":"https://api.github.com/repos/StephenClearyArchive/Nito.Asynchronous/issues/1/events","html_url":"https://github.com/StephenClearyArchive/Nito.Asynchronous/issues/1","id":352102719,"node_id":"MDU6SXNzdWUzNTIxMDI3MTk=","number":1,"title":"Q: AsyncContext.Run versus C# 7.1 async main","user":{"login":"nojaf","id":2621499,"node_id":"MDQ6VXNlcjI2MjE0OTk=","avatar_url":"https://avatars3.githubusercontent.com/u/2621499?v=4","gravatar_id":"","url":"https://api.github.com/users/nojaf","html_url":"https://github.com/nojaf","followers_url":"https://api.github.com/users/nojaf/followers","following_url":"https://api.github.com/users/nojaf/following{/other_user}","gists_url":"https://api.github.com/users/nojaf/gists{/gist_id}","starred_url":"https://api.github.com/users/nojaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nojaf/subscriptions","organizations_url":"https://api.github.com/users/nojaf/orgs","repos_url":"https://api.github.com/users/nojaf/repos","events_url":"https://api.github.com/users/nojaf/events{/privacy}","received_events_url":"https://api.github.com/users/nojaf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-20T11:54:25Z","updated_at":"2018-08-20T11:55:46Z","closed_at":"2018-08-20T11:55:45Z","author_association":"NONE","body":"Hi I have a question regarding the following snippet:\r\n```csharp\r\nusing Nito.AsyncEx;\r\n\r\nclass Program\r\n    {\r\n        static async Task MainAsync()\r\n        {\r\n            var curious = SynchronizationContext.Current;\r\n            await Task.Delay(1000);\r\n        }\r\n\r\n        static void Main()\r\n        {\r\n            try\r\n            {\r\n                AsyncContext.Run(MainAsync);\r\n            }\r\n            catch (Exception e)\r\n            {\r\n                Console.WriteLine(e);\r\n            }\r\n        }\r\n    }\r\n```\r\n\r\nI noticed that I have a `SynchronizationContext` by using the nuget package. And I believe when using C# 7.1 I would not have one.\r\nWhat are the benefits of still using Nito.Async.Context when working with Console applications?"}}
{"actor":{"display_login":"nojaf"}}