{"action":"closed","number":1332,"pull_request":{"url":"https://api.github.com/repos/manastech/crystal/pulls/1332","id":43745107,"html_url":"https://github.com/manastech/crystal/pull/1332","diff_url":"https://github.com/manastech/crystal/pull/1332.diff","patch_url":"https://github.com/manastech/crystal/pull/1332.patch","issue_url":"https://api.github.com/repos/manastech/crystal/issues/1332","number":1332,"state":"closed","locked":false,"title":"Add overload of `sleep` that accepts `TimeSpan`","user":{"login":"BlaXpirit","id":371383,"avatar_url":"https://avatars.githubusercontent.com/u/371383?v=3","gravatar_id":"","url":"https://api.github.com/users/BlaXpirit","html_url":"https://github.com/BlaXpirit","followers_url":"https://api.github.com/users/BlaXpirit/followers","following_url":"https://api.github.com/users/BlaXpirit/following{/other_user}","gists_url":"https://api.github.com/users/BlaXpirit/gists{/gist_id}","starred_url":"https://api.github.com/users/BlaXpirit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlaXpirit/subscriptions","organizations_url":"https://api.github.com/users/BlaXpirit/orgs","repos_url":"https://api.github.com/users/BlaXpirit/repos","events_url":"https://api.github.com/users/BlaXpirit/events{/privacy}","received_events_url":"https://api.github.com/users/BlaXpirit/received_events","type":"User","site_admin":false},"body":"I noticed that there seem to be no specs for `sleep`. So no tests for this one either.\r\nBut I did check that this works.\r\n\r\nBy the way, this allows things like:\r\n```crystal\r\nsleep(5.minutes + 20.seconds)\r\n```","created_at":"2015-08-31T09:08:47Z","updated_at":"2015-08-31T12:25:07Z","closed_at":"2015-08-31T12:25:07Z","merged_at":"2015-08-31T12:25:07Z","merge_commit_sha":"caf761a0fabcd379530422318639fc697d4a80b5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/manastech/crystal/pulls/1332/commits","review_comments_url":"https://api.github.com/repos/manastech/crystal/pulls/1332/comments","review_comment_url":"https://api.github.com/repos/manastech/crystal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/1332/comments","statuses_url":"https://api.github.com/repos/manastech/crystal/statuses/15a18711ac294c715ead503cf509000f2b4b7460","head":{"label":"BlaXpirit:sleep-timespan","ref":"sleep-timespan","sha":"15a18711ac294c715ead503cf509000f2b4b7460","user":{"login":"BlaXpirit","id":371383,"avatar_url":"https://avatars.githubusercontent.com/u/371383?v=3","gravatar_id":"","url":"https://api.github.com/users/BlaXpirit","html_url":"https://github.com/BlaXpirit","followers_url":"https://api.github.com/users/BlaXpirit/followers","following_url":"https://api.github.com/users/BlaXpirit/following{/other_user}","gists_url":"https://api.github.com/users/BlaXpirit/gists{/gist_id}","starred_url":"https://api.github.com/users/BlaXpirit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlaXpirit/subscriptions","organizations_url":"https://api.github.com/users/BlaXpirit/orgs","repos_url":"https://api.github.com/users/BlaXpirit/repos","events_url":"https://api.github.com/users/BlaXpirit/events{/privacy}","received_events_url":"https://api.github.com/users/BlaXpirit/received_events","type":"User","site_admin":false},"repo":{"id":36994615,"name":"crystal","full_name":"BlaXpirit/crystal","owner":{"login":"BlaXpirit","id":371383,"avatar_url":"https://avatars.githubusercontent.com/u/371383?v=3","gravatar_id":"","url":"https://api.github.com/users/BlaXpirit","html_url":"https://github.com/BlaXpirit","followers_url":"https://api.github.com/users/BlaXpirit/followers","following_url":"https://api.github.com/users/BlaXpirit/following{/other_user}","gists_url":"https://api.github.com/users/BlaXpirit/gists{/gist_id}","starred_url":"https://api.github.com/users/BlaXpirit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlaXpirit/subscriptions","organizations_url":"https://api.github.com/users/BlaXpirit/orgs","repos_url":"https://api.github.com/users/BlaXpirit/repos","events_url":"https://api.github.com/users/BlaXpirit/events{/privacy}","received_events_url":"https://api.github.com/users/BlaXpirit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BlaXpirit/crystal","description":"The Crystal Programming Language","fork":true,"url":"https://api.github.com/repos/BlaXpirit/crystal","forks_url":"https://api.github.com/repos/BlaXpirit/crystal/forks","keys_url":"https://api.github.com/repos/BlaXpirit/crystal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlaXpirit/crystal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlaXpirit/crystal/teams","hooks_url":"https://api.github.com/repos/BlaXpirit/crystal/hooks","issue_events_url":"https://api.github.com/repos/BlaXpirit/crystal/issues/events{/number}","events_url":"https://api.github.com/repos/BlaXpirit/crystal/events","assignees_url":"https://api.github.com/repos/BlaXpirit/crystal/assignees{/user}","branches_url":"https://api.github.com/repos/BlaXpirit/crystal/branches{/branch}","tags_url":"https://api.github.com/repos/BlaXpirit/crystal/tags","blobs_url":"https://api.github.com/repos/BlaXpirit/crystal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlaXpirit/crystal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlaXpirit/crystal/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlaXpirit/crystal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlaXpirit/crystal/statuses/{sha}","languages_url":"https://api.github.com/repos/BlaXpirit/crystal/languages","stargazers_url":"https://api.github.com/repos/BlaXpirit/crystal/stargazers","contributors_url":"https://api.github.com/repos/BlaXpirit/crystal/contributors","subscribers_url":"https://api.github.com/repos/BlaXpirit/crystal/subscribers","subscription_url":"https://api.github.com/repos/BlaXpirit/crystal/subscription","commits_url":"https://api.github.com/repos/BlaXpirit/crystal/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlaXpirit/crystal/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlaXpirit/crystal/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlaXpirit/crystal/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlaXpirit/crystal/contents/{+path}","compare_url":"https://api.github.com/repos/BlaXpirit/crystal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlaXpirit/crystal/merges","archive_url":"https://api.github.com/repos/BlaXpirit/crystal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlaXpirit/crystal/downloads","issues_url":"https://api.github.com/repos/BlaXpirit/crystal/issues{/number}","pulls_url":"https://api.github.com/repos/BlaXpirit/crystal/pulls{/number}","milestones_url":"https://api.github.com/repos/BlaXpirit/crystal/milestones{/number}","notifications_url":"https://api.github.com/repos/BlaXpirit/crystal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlaXpirit/crystal/labels{/name}","releases_url":"https://api.github.com/repos/BlaXpirit/crystal/releases{/id}","created_at":"2015-06-06T20:45:25Z","updated_at":"2015-06-06T20:45:27Z","pushed_at":"2015-08-31T09:05:52Z","git_url":"git://github.com/BlaXpirit/crystal.git","ssh_url":"git@github.com:BlaXpirit/crystal.git","clone_url":"https://github.com/BlaXpirit/crystal.git","svn_url":"https://github.com/BlaXpirit/crystal","homepage":"http://crystal-lang.org","size":28476,"stargazers_count":0,"watchers_count":0,"language":"Crystal","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"manastech:master","ref":"master","sha":"59793cfcdf76750f52340e6433a97398dae00247","user":{"login":"manastech","id":1354950,"avatar_url":"https://avatars.githubusercontent.com/u/1354950?v=3","gravatar_id":"","url":"https://api.github.com/users/manastech","html_url":"https://github.com/manastech","followers_url":"https://api.github.com/users/manastech/followers","following_url":"https://api.github.com/users/manastech/following{/other_user}","gists_url":"https://api.github.com/users/manastech/gists{/gist_id}","starred_url":"https://api.github.com/users/manastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manastech/subscriptions","organizations_url":"https://api.github.com/users/manastech/orgs","repos_url":"https://api.github.com/users/manastech/repos","events_url":"https://api.github.com/users/manastech/events{/privacy}","received_events_url":"https://api.github.com/users/manastech/received_events","type":"Organization","site_admin":false},"repo":{"id":6887813,"name":"crystal","full_name":"manastech/crystal","owner":{"login":"manastech","id":1354950,"avatar_url":"https://avatars.githubusercontent.com/u/1354950?v=3","gravatar_id":"","url":"https://api.github.com/users/manastech","html_url":"https://github.com/manastech","followers_url":"https://api.github.com/users/manastech/followers","following_url":"https://api.github.com/users/manastech/following{/other_user}","gists_url":"https://api.github.com/users/manastech/gists{/gist_id}","starred_url":"https://api.github.com/users/manastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manastech/subscriptions","organizations_url":"https://api.github.com/users/manastech/orgs","repos_url":"https://api.github.com/users/manastech/repos","events_url":"https://api.github.com/users/manastech/events{/privacy}","received_events_url":"https://api.github.com/users/manastech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/manastech/crystal","description":"The Crystal Programming Language","fork":false,"url":"https://api.github.com/repos/manastech/crystal","forks_url":"https://api.github.com/repos/manastech/crystal/forks","keys_url":"https://api.github.com/repos/manastech/crystal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manastech/crystal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manastech/crystal/teams","hooks_url":"https://api.github.com/repos/manastech/crystal/hooks","issue_events_url":"https://api.github.com/repos/manastech/crystal/issues/events{/number}","events_url":"https://api.github.com/repos/manastech/crystal/events","assignees_url":"https://api.github.com/repos/manastech/crystal/assignees{/user}","branches_url":"https://api.github.com/repos/manastech/crystal/branches{/branch}","tags_url":"https://api.github.com/repos/manastech/crystal/tags","blobs_url":"https://api.github.com/repos/manastech/crystal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manastech/crystal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manastech/crystal/git/refs{/sha}","trees_url":"https://api.github.com/repos/manastech/crystal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manastech/crystal/statuses/{sha}","languages_url":"https://api.github.com/repos/manastech/crystal/languages","stargazers_url":"https://api.github.com/repos/manastech/crystal/stargazers","contributors_url":"https://api.github.com/repos/manastech/crystal/contributors","subscribers_url":"https://api.github.com/repos/manastech/crystal/subscribers","subscription_url":"https://api.github.com/repos/manastech/crystal/subscription","commits_url":"https://api.github.com/repos/manastech/crystal/commits{/sha}","git_commits_url":"https://api.github.com/repos/manastech/crystal/git/commits{/sha}","comments_url":"https://api.github.com/repos/manastech/crystal/comments{/number}","issue_comment_url":"https://api.github.com/repos/manastech/crystal/issues/comments{/number}","contents_url":"https://api.github.com/repos/manastech/crystal/contents/{+path}","compare_url":"https://api.github.com/repos/manastech/crystal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manastech/crystal/merges","archive_url":"https://api.github.com/repos/manastech/crystal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manastech/crystal/downloads","issues_url":"https://api.github.com/repos/manastech/crystal/issues{/number}","pulls_url":"https://api.github.com/repos/manastech/crystal/pulls{/number}","milestones_url":"https://api.github.com/repos/manastech/crystal/milestones{/number}","notifications_url":"https://api.github.com/repos/manastech/crystal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manastech/crystal/labels{/name}","releases_url":"https://api.github.com/repos/manastech/crystal/releases{/id}","created_at":"2012-11-27T17:32:32Z","updated_at":"2015-08-31T09:19:52Z","pushed_at":"2015-08-31T12:25:07Z","git_url":"git://github.com/manastech/crystal.git","ssh_url":"git@github.com:manastech/crystal.git","clone_url":"https://github.com/manastech/crystal.git","svn_url":"https://github.com/manastech/crystal","homepage":"http://crystal-lang.org","size":41750,"stargazers_count":3155,"watchers_count":3155,"language":"Crystal","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":220,"mirror_url":null,"open_issues_count":215,"forks":220,"open_issues":215,"watchers":3155,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/manastech/crystal/pulls/1332"},"html":{"href":"https://github.com/manastech/crystal/pull/1332"},"issue":{"href":"https://api.github.com/repos/manastech/crystal/issues/1332"},"comments":{"href":"https://api.github.com/repos/manastech/crystal/issues/1332/comments"},"review_comments":{"href":"https://api.github.com/repos/manastech/crystal/pulls/1332/comments"},"review_comment":{"href":"https://api.github.com/repos/manastech/crystal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/manastech/crystal/pulls/1332/commits"},"statuses":{"href":"https://api.github.com/repos/manastech/crystal/statuses/15a18711ac294c715ead503cf509000f2b4b7460"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"asterite","id":209371,"avatar_url":"https://avatars.githubusercontent.com/u/209371?v=3","gravatar_id":"","url":"https://api.github.com/users/asterite","html_url":"https://github.com/asterite","followers_url":"https://api.github.com/users/asterite/followers","following_url":"https://api.github.com/users/asterite/following{/other_user}","gists_url":"https://api.github.com/users/asterite/gists{/gist_id}","starred_url":"https://api.github.com/users/asterite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asterite/subscriptions","organizations_url":"https://api.github.com/users/asterite/orgs","repos_url":"https://api.github.com/users/asterite/repos","events_url":"https://api.github.com/users/asterite/events{/privacy}","received_events_url":"https://api.github.com/users/asterite/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":1}}