{"action":"created","issue":{"url":"https://api.github.com/repos/StephenCleary/AsyncEx/issues/57","repository_url":"https://api.github.com/repos/StephenCleary/AsyncEx","labels_url":"https://api.github.com/repos/StephenCleary/AsyncEx/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/StephenCleary/AsyncEx/issues/57/comments","events_url":"https://api.github.com/repos/StephenCleary/AsyncEx/issues/57/events","html_url":"https://github.com/StephenCleary/AsyncEx/issues/57","id":163281987,"number":57,"title":"AsyncLock dispose deadlock","user":{"login":"MattRyan","id":3344503,"avatar_url":"https://avatars.githubusercontent.com/u/3344503?v=3","gravatar_id":"","url":"https://api.github.com/users/MattRyan","html_url":"https://github.com/MattRyan","followers_url":"https://api.github.com/users/MattRyan/followers","following_url":"https://api.github.com/users/MattRyan/following{/other_user}","gists_url":"https://api.github.com/users/MattRyan/gists{/gist_id}","starred_url":"https://api.github.com/users/MattRyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattRyan/subscriptions","organizations_url":"https://api.github.com/users/MattRyan/orgs","repos_url":"https://api.github.com/users/MattRyan/repos","events_url":"https://api.github.com/users/MattRyan/events{/privacy}","received_events_url":"https://api.github.com/users/MattRyan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"StephenCleary","id":900597,"avatar_url":"https://avatars.githubusercontent.com/u/900597?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenCleary","html_url":"https://github.com/StephenCleary","followers_url":"https://api.github.com/users/StephenCleary/followers","following_url":"https://api.github.com/users/StephenCleary/following{/other_user}","gists_url":"https://api.github.com/users/StephenCleary/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenCleary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenCleary/subscriptions","organizations_url":"https://api.github.com/users/StephenCleary/orgs","repos_url":"https://api.github.com/users/StephenCleary/repos","events_url":"https://api.github.com/users/StephenCleary/events{/privacy}","received_events_url":"https://api.github.com/users/StephenCleary/received_events","type":"User","site_admin":false},"assignees":[{"login":"StephenCleary","id":900597,"avatar_url":"https://avatars.githubusercontent.com/u/900597?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenCleary","html_url":"https://github.com/StephenCleary","followers_url":"https://api.github.com/users/StephenCleary/followers","following_url":"https://api.github.com/users/StephenCleary/following{/other_user}","gists_url":"https://api.github.com/users/StephenCleary/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenCleary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenCleary/subscriptions","organizations_url":"https://api.github.com/users/StephenCleary/orgs","repos_url":"https://api.github.com/users/StephenCleary/repos","events_url":"https://api.github.com/users/StephenCleary/events{/privacy}","received_events_url":"https://api.github.com/users/StephenCleary/received_events","type":"User","site_admin":false}],"milestone":null,"comments":32,"created_at":"2016-06-30T22:37:55Z","updated_at":"2016-07-28T11:34:12Z","closed_at":null,"body":"I am running into a dead lock when using the AsyncLock. The situation as best as I can determine occurs when an AsyncLock.Lock() is being disposed. The task.WaitAndUnwrapException<IDisposable>() call uses an awaiter that releases the current thread. Another tasks then grabs this thread. Until the second task complete or awaits the AsyncLock cannot complete because it requires the original calling context. \r\n\r\nI noticed that the overload of WaitAndUnwrapException does not use the GetAwaiter method so it never gives up control of the thread. Would a simple fix be to use this overload in the AsyncLock?"},"comment":{"url":"https://api.github.com/repos/StephenCleary/AsyncEx/issues/comments/235870264","html_url":"https://github.com/StephenCleary/AsyncEx/issues/57#issuecomment-235870264","issue_url":"https://api.github.com/repos/StephenCleary/AsyncEx/issues/57","id":235870264,"user":{"login":"chanti-github","id":18000505,"avatar_url":"https://avatars.githubusercontent.com/u/18000505?v=3","gravatar_id":"","url":"https://api.github.com/users/chanti-github","html_url":"https://github.com/chanti-github","followers_url":"https://api.github.com/users/chanti-github/followers","following_url":"https://api.github.com/users/chanti-github/following{/other_user}","gists_url":"https://api.github.com/users/chanti-github/gists{/gist_id}","starred_url":"https://api.github.com/users/chanti-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanti-github/subscriptions","organizations_url":"https://api.github.com/users/chanti-github/orgs","repos_url":"https://api.github.com/users/chanti-github/repos","events_url":"https://api.github.com/users/chanti-github/events{/privacy}","received_events_url":"https://api.github.com/users/chanti-github/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T11:34:12Z","updated_at":"2016-07-28T11:34:12Z","body":"@StephenCleary \r\n\r\nI am using httpclient single instance approach but i am getting the task was canclled exception in times can you please help me on this ??"}}
{"actor":{"display_login":"chanti-github"}}