{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/5769","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/5769/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/5769/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/5769/events","html_url":"https://github.com/dotnet/corefx/issues/5769","id":129681954,"number":5769,"title":"ContinueWhenAll(...).AsyncState not null","user":{"login":"Clockwork-Muse","id":5569508,"avatar_url":"https://avatars.githubusercontent.com/u/5569508?v=3","gravatar_id":"","url":"https://api.github.com/users/Clockwork-Muse","html_url":"https://github.com/Clockwork-Muse","followers_url":"https://api.github.com/users/Clockwork-Muse/followers","following_url":"https://api.github.com/users/Clockwork-Muse/following{/other_user}","gists_url":"https://api.github.com/users/Clockwork-Muse/gists{/gist_id}","starred_url":"https://api.github.com/users/Clockwork-Muse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clockwork-Muse/subscriptions","organizations_url":"https://api.github.com/users/Clockwork-Muse/orgs","repos_url":"https://api.github.com/users/Clockwork-Muse/repos","events_url":"https://api.github.com/users/Clockwork-Muse/events{/privacy}","received_events_url":"https://api.github.com/users/Clockwork-Muse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-29T06:43:17Z","updated_at":"2016-02-01T03:53:33Z","closed_at":"2016-02-01T03:53:33Z","body":"This is... at least a little surprising:\r\n```\r\nAction<Task[]> a = _ => { };\r\nAssert.Same(a, new TaskFactory().ContinueWhenAll(new[] { new Task(() => { }) }, a).AsyncState);\r\n// Async state is the continuation action?  Huh?\r\n```\r\n... succeeds (as does `ContinueWhenAny(...)`).\r\n\r\nContinuations created via non-state `ContinueWith(...)` have `AsyncState == null`, as do regular tasks and futures.\r\n\r\nThere's no version of `ContinueWhenAll(...)`/`ContinueWhenAny(...)` that takes a state, so I was expecting it to always be null.  The documentation doesn't mention `AsyncState` in these methods, so I'm not sure what the behavior is supposed to be."}}