{"action":"closed","issue":{"url":"https://api.github.com/repos/javaslang/javaslang/issues/845","labels_url":"https://api.github.com/repos/javaslang/javaslang/issues/845/labels{/name}","comments_url":"https://api.github.com/repos/javaslang/javaslang/issues/845/comments","events_url":"https://api.github.com/repos/javaslang/javaslang/issues/845/events","html_url":"https://github.com/javaslang/javaslang/issues/845","id":118349146,"number":845,"title":"Minor missmatch between documentation and code","user":{"login":"koenighotze","id":292282,"avatar_url":"https://avatars.githubusercontent.com/u/292282?v=3","gravatar_id":"","url":"https://api.github.com/users/koenighotze","html_url":"https://github.com/koenighotze","followers_url":"https://api.github.com/users/koenighotze/followers","following_url":"https://api.github.com/users/koenighotze/following{/other_user}","gists_url":"https://api.github.com/users/koenighotze/gists{/gist_id}","starred_url":"https://api.github.com/users/koenighotze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koenighotze/subscriptions","organizations_url":"https://api.github.com/users/koenighotze/orgs","repos_url":"https://api.github.com/users/koenighotze/repos","events_url":"https://api.github.com/users/koenighotze/events{/privacy}","received_events_url":"https://api.github.com/users/koenighotze/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/javaslang/javaslang/labels/documentation","name":"documentation","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/javaslang/javaslang/milestones/18","html_url":"https://github.com/javaslang/javaslang/milestones/2.0.0","labels_url":"https://api.github.com/repos/javaslang/javaslang/milestones/18/labels","id":1091674,"number":18,"title":"2.0.0","description":"","creator":{"login":"danieldietrich","id":743833,"avatar_url":"https://avatars.githubusercontent.com/u/743833?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldietrich","html_url":"https://github.com/danieldietrich","followers_url":"https://api.github.com/users/danieldietrich/followers","following_url":"https://api.github.com/users/danieldietrich/following{/other_user}","gists_url":"https://api.github.com/users/danieldietrich/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldietrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldietrich/subscriptions","organizations_url":"https://api.github.com/users/danieldietrich/orgs","repos_url":"https://api.github.com/users/danieldietrich/repos","events_url":"https://api.github.com/users/danieldietrich/events{/privacy}","received_events_url":"https://api.github.com/users/danieldietrich/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":221,"state":"open","created_at":"2015-04-30T20:29:59Z","updated_at":"2015-12-07T16:25:26Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-11-23T10:00:29Z","updated_at":"2015-12-07T16:25:26Z","closed_at":"2015-12-07T16:25:26Z","body":"In\r\n\r\n javaslang.concurrent.Future#get\r\n\r\nthe javadoc says\r\n\r\n```java\r\n/**\r\n  * Returns the value of the future. Waits for the result if necessary.\r\n  *\r\n  * @return The value of this future.\r\n  * @throws IllegalStateException if the computation unexpectedly failed or was interrupted\r\n  */\r\n```\r\n\r\nbut actually the code throws ```NoSuchElementException```.\r\n\r\nTestsnippet:\r\n\r\n```java\r\n    @Test(expected = NoSuchElementException.class)\r\n    public void a_canceled_future_throws_an_ex() {\r\n        longRunningFuture.cancel();\r\n\r\n        longRunningFuture.get();\r\n    }\r\n```\r\n\r\n\r\n\r\n"}}