{"action":"opened","issue":{"url":"https://api.github.com/repos/RamblingCookieMonster/PSRabbitMq/issues/6","repository_url":"https://api.github.com/repos/RamblingCookieMonster/PSRabbitMq","labels_url":"https://api.github.com/repos/RamblingCookieMonster/PSRabbitMq/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/RamblingCookieMonster/PSRabbitMq/issues/6/comments","events_url":"https://api.github.com/repos/RamblingCookieMonster/PSRabbitMq/issues/6/events","html_url":"https://github.com/RamblingCookieMonster/PSRabbitMq/issues/6","id":167862808,"number":6,"title":"Wait-rabbitmqMessage Timeout question/issue","user":{"login":"gaelcolas","id":8962101,"avatar_url":"https://avatars.githubusercontent.com/u/8962101?v=3","gravatar_id":"","url":"https://api.github.com/users/gaelcolas","html_url":"https://github.com/gaelcolas","followers_url":"https://api.github.com/users/gaelcolas/followers","following_url":"https://api.github.com/users/gaelcolas/following{/other_user}","gists_url":"https://api.github.com/users/gaelcolas/gists{/gist_id}","starred_url":"https://api.github.com/users/gaelcolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaelcolas/subscriptions","organizations_url":"https://api.github.com/users/gaelcolas/orgs","repos_url":"https://api.github.com/users/gaelcolas/repos","events_url":"https://api.github.com/users/gaelcolas/events{/privacy}","received_events_url":"https://api.github.com/users/gaelcolas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-27T14:07:43Z","updated_at":"2016-07-27T14:07:43Z","closed_at":null,"body":"Hi,\r\n\r\nI haven't tested this yet, but it looks like the While loop is only decreasing a counter [int], without pausing  in that loop.\r\nAlso the `$Timeout` variable has a default value of 1, so `$SecondsRemaining = [Double]::PositiveInfinity` is never reached/used.\r\n\r\nI would prefer a loop with a timespan like this: https://mjolinor.wordpress.com/2012/01/14/making-a-timed-loop-in-powershell/\r\n\r\nBut ensuring backward compatibility with an [int] as param requires a bit extra work and I don't have time atm. \r\n\r\nSo just filing for later."}}
{"actor":{"display_login":"gaelcolas"}}