{"action":"created","issue":{"url":"https://api.github.com/repos/crystal-lang/crystal/issues/2599","repository_url":"https://api.github.com/repos/crystal-lang/crystal","labels_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2599/labels{/name}","comments_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2599/comments","events_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2599/events","html_url":"https://github.com/crystal-lang/crystal/issues/2599","id":155082621,"number":2599,"title":"Expose condition variable's timed_wait","user":{"login":"mperham","id":2911,"avatar_url":"https://avatars.githubusercontent.com/u/2911?v=3","gravatar_id":"","url":"https://api.github.com/users/mperham","html_url":"https://github.com/mperham","followers_url":"https://api.github.com/users/mperham/followers","following_url":"https://api.github.com/users/mperham/following{/other_user}","gists_url":"https://api.github.com/users/mperham/gists{/gist_id}","starred_url":"https://api.github.com/users/mperham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mperham/subscriptions","organizations_url":"https://api.github.com/users/mperham/orgs","repos_url":"https://api.github.com/users/mperham/repos","events_url":"https://api.github.com/users/mperham/events{/privacy}","received_events_url":"https://api.github.com/users/mperham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-16T17:50:57Z","updated_at":"2016-05-16T22:54:22Z","closed_at":null,"body":"ConditionVariables have a wait method but don't yet expose the similar timed_wait.\r\n\r\nhttps://github.com/crystal-lang/crystal/blob/master/src/thread/condition_variable.cr#L25\r\nhttps://github.com/crystal-lang/crystal/blob/869b306b1966a737c9b62c6fdf5b0eabd315f633/src/thread/lib_pthread.cr#L40\r\n\r\nCould we get timed_wait exposed too?  I'd do it myself but I'm not yet confident enough in my crystal skills.  This method is necessary to implement a resource pool shared between fibers."},"comment":{"url":"https://api.github.com/repos/crystal-lang/crystal/issues/comments/219572564","html_url":"https://github.com/crystal-lang/crystal/issues/2599#issuecomment-219572564","issue_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2599","id":219572564,"user":{"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},"created_at":"2016-05-16T22:54:21Z","updated_at":"2016-05-16T22:54:21Z","body":"Hi,\r\n\r\n`Thread` and `ConditionVariable` are marked as `:nodoc:` because they are not public APIs. Do not use them, your program will crash.\r\n\r\nSo any addition to Thread and ConditionVariable, at least for now, are not needed."}}