{"action":"created","issue":{"url":"https://api.github.com/repos/jpaulm/jsfbp/issues/12","labels_url":"https://api.github.com/repos/jpaulm/jsfbp/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/jpaulm/jsfbp/issues/12/comments","events_url":"https://api.github.com/repos/jpaulm/jsfbp/issues/12/events","html_url":"https://github.com/jpaulm/jsfbp/issues/12","id":57377254,"number":12,"title":"randdelay doesn't actually delay","user":{"login":"tlrobinson","id":18193,"avatar_url":"https://avatars.githubusercontent.com/u/18193?v=3","gravatar_id":"","url":"https://api.github.com/users/tlrobinson","html_url":"https://github.com/tlrobinson","followers_url":"https://api.github.com/users/tlrobinson/followers","following_url":"https://api.github.com/users/tlrobinson/following{/other_user}","gists_url":"https://api.github.com/users/tlrobinson/gists{/gist_id}","starred_url":"https://api.github.com/users/tlrobinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlrobinson/subscriptions","organizations_url":"https://api.github.com/users/tlrobinson/orgs","repos_url":"https://api.github.com/users/tlrobinson/repos","events_url":"https://api.github.com/users/tlrobinson/events{/privacy}","received_events_url":"https://api.github.com/users/tlrobinson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-11T21:07:07Z","updated_at":"2015-02-14T19:53:06Z","closed_at":null,"body":"setTimeout is an asynchronous operation (the passed in callback gets called after the delay), so this doesn't actually delay anything: https://github.com/jpaulm/jsfbp/blob/master/script/randdelay.js#L24-L28\r\n\r\nI'm not sure what the correct implementation should be. I tried something like this https://github.com/laverdet/node-fibers#sleep which seemed to correctly delay, but then the process never exits."},"comment":{"url":"https://api.github.com/repos/jpaulm/jsfbp/issues/comments/74389409","html_url":"https://github.com/jpaulm/jsfbp/issues/12#issuecomment-74389409","issue_url":"https://api.github.com/repos/jpaulm/jsfbp/issues/12","id":74389409,"user":{"login":"jpaulm","id":312871,"avatar_url":"https://avatars.githubusercontent.com/u/312871?v=3","gravatar_id":"","url":"https://api.github.com/users/jpaulm","html_url":"https://github.com/jpaulm","followers_url":"https://api.github.com/users/jpaulm/followers","following_url":"https://api.github.com/users/jpaulm/following{/other_user}","gists_url":"https://api.github.com/users/jpaulm/gists{/gist_id}","starred_url":"https://api.github.com/users/jpaulm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpaulm/subscriptions","organizations_url":"https://api.github.com/users/jpaulm/orgs","repos_url":"https://api.github.com/users/jpaulm/repos","events_url":"https://api.github.com/users/jpaulm/events{/privacy}","received_events_url":"https://api.github.com/users/jpaulm/received_events","type":"User","site_admin":false},"created_at":"2015-02-14T19:53:06Z","updated_at":"2015-02-14T19:53:06Z","body":"Thanks, @comfreek.  I did a git status, and got:\n\n```\n C:\\Users\\Paul\\Documents\\GitHub\\fbp-repos\\jsfbp [(7cd38e0...) +0 ~2 -0]>\ngit stat\nus\nHEAD detached at tlrobinson/delay\n```\n\nWhat does this mean?  And can I just delete @tlrobinson's delay file when\nI'm finished with it?\n\nThanks,\n\nPaul\n\n\n\nOn Sat, Feb 14, 2015 at 10:49 AM, ComFreek <notifications@github.com> wrote:\n\n> You must first add tlrobinson's fork as a remote repository:\n>\n> git remote add tlrobinson https://github.com/tlrobinson/jsfbp.git\n>\n> Then do (as the comment of @tlrobinson <https://github.com/tlrobinson>\n> explains):\n>\n> git fetch tlrobinson\n> git checkout tlrobinson/delay\n> npm test\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/jpaulm/jsfbp/issues/12#issuecomment-74379994>.\n>\n"}}