{"action":"opened","issue":{"url":"https://api.github.com/repos/concurrent-programming-in-scala/learning-examples/issues/11","labels_url":"https://api.github.com/repos/concurrent-programming-in-scala/learning-examples/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/concurrent-programming-in-scala/learning-examples/issues/11/comments","events_url":"https://api.github.com/repos/concurrent-programming-in-scala/learning-examples/issues/11/events","html_url":"https://github.com/concurrent-programming-in-scala/learning-examples/issues/11","id":78400122,"number":11,"title":"`success` in `timeout` needs a value","user":{"login":"normenmueller","id":428576,"avatar_url":"https://avatars.githubusercontent.com/u/428576?v=3","gravatar_id":"","url":"https://api.github.com/users/normenmueller","html_url":"https://github.com/normenmueller","followers_url":"https://api.github.com/users/normenmueller/followers","following_url":"https://api.github.com/users/normenmueller/following{/other_user}","gists_url":"https://api.github.com/users/normenmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/normenmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normenmueller/subscriptions","organizations_url":"https://api.github.com/users/normenmueller/orgs","repos_url":"https://api.github.com/users/normenmueller/repos","events_url":"https://api.github.com/users/normenmueller/events{/privacy}","received_events_url":"https://api.github.com/users/normenmueller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-20T06:49:45Z","updated_at":"2015-05-20T06:49:45Z","closed_at":null,"body":"On page 123\r\n\r\n    def timeout(t: Long): Future[Unit] = {\r\n      val p = Promise[Unit]\r\n      timer.schedule(new TimerTask {\r\n        def run() = {\r\n          p success ()   // <<< p success (())\r\n          timer.cancel()\r\n        } \r\n      }, t)\r\n      p.future \r\n    }\r\n\r\nIt's only a warning, but still ;)"}}