{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/3330","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3330/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3330/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3330/events","html_url":"https://github.com/elixir-lang/elixir/pull/3330","id":76753957,"number":3330,"title":"Showing example of timeout for Task.await","user":{"login":"jeregrine","id":100886,"avatar_url":"https://avatars.githubusercontent.com/u/100886?v=3","gravatar_id":"","url":"https://api.github.com/users/jeregrine","html_url":"https://github.com/jeregrine","followers_url":"https://api.github.com/users/jeregrine/followers","following_url":"https://api.github.com/users/jeregrine/following{/other_user}","gists_url":"https://api.github.com/users/jeregrine/gists{/gist_id}","starred_url":"https://api.github.com/users/jeregrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeregrine/subscriptions","organizations_url":"https://api.github.com/users/jeregrine/orgs","repos_url":"https://api.github.com/users/jeregrine/repos","events_url":"https://api.github.com/users/jeregrine/events{/privacy}","received_events_url":"https://api.github.com/users/jeregrine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T15:05:39Z","updated_at":"2015-05-15T15:49:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/3330","html_url":"https://github.com/elixir-lang/elixir/pull/3330","diff_url":"https://github.com/elixir-lang/elixir/pull/3330.diff","patch_url":"https://github.com/elixir-lang/elixir/pull/3330.patch"},"body":"It took me a bit of time to figure out how to handle a timeout. Figured I'd add an example here for future reference. \r\n\r\nI wasn't sure if I should include this near the module doc or in the function doc. I figured it would be best near the function. \r\n\r\nLet me know what you think!"},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/102443253","html_url":"https://github.com/elixir-lang/elixir/pull/3330#issuecomment-102443253","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3330","id":102443253,"user":{"login":"jeregrine","id":100886,"avatar_url":"https://avatars.githubusercontent.com/u/100886?v=3","gravatar_id":"","url":"https://api.github.com/users/jeregrine","html_url":"https://github.com/jeregrine","followers_url":"https://api.github.com/users/jeregrine/followers","following_url":"https://api.github.com/users/jeregrine/following{/other_user}","gists_url":"https://api.github.com/users/jeregrine/gists{/gist_id}","starred_url":"https://api.github.com/users/jeregrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeregrine/subscriptions","organizations_url":"https://api.github.com/users/jeregrine/orgs","repos_url":"https://api.github.com/users/jeregrine/repos","events_url":"https://api.github.com/users/jeregrine/events{/privacy}","received_events_url":"https://api.github.com/users/jeregrine/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T15:49:49Z","updated_at":"2015-05-15T15:49:49Z","body":"@josevalim well in my case I am using a task to parallelize multiple http requests to third party services. I have http timeouts and etc in the task already. If it takes longer than a certain timeout, I want to just break and continue. https://gist.github.com/jeregrine/4aa9a3f1f60d90fcbf35 \r\n\r\n"}}