{"action":"created","comment":{"url":"https://api.github.com/repos/wolox-training/lfr-react/pulls/comments/222473146","pull_request_review_id":161369219,"id":222473146,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjQ3MzE0Ng==","diff_hunk":"@@ -1,9 +1,20 @@\n // Hint: use setInterval, create a new Promise and measure time with Date.now()\n \n-export function delay() {\n-\n+export function delay(time) {\n+  const startTime = Date.now();\n+  return new Promise((resolve, reject) => {\n+    setInterval(function() {\n+      const endTime = Date.now();\n+      const timeRandom = time - (endTime - startTime);\n+      if ((timeRandom) > (time + 100)) {","path":"React/finger-exercises/react/ecmascript/02 - promises/index.js","position":11,"original_position":11,"commit_id":"9d055cb35310be1cd5d8e60d9525269420233a46","original_commit_id":"9d055cb35310be1cd5d8e60d9525269420233a46","user":{"login":"DLotero","id":17031033,"node_id":"MDQ6VXNlcjE3MDMxMDMz","avatar_url":"https://avatars1.githubusercontent.com/u/17031033?v=4","gravatar_id":"","url":"https://api.github.com/users/DLotero","html_url":"https://github.com/DLotero","followers_url":"https://api.github.com/users/DLotero/followers","following_url":"https://api.github.com/users/DLotero/following{/other_user}","gists_url":"https://api.github.com/users/DLotero/gists{/gist_id}","starred_url":"https://api.github.com/users/DLotero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DLotero/subscriptions","organizations_url":"https://api.github.com/users/DLotero/orgs","repos_url":"https://api.github.com/users/DLotero/repos","events_url":"https://api.github.com/users/DLotero/events{/privacy}","received_events_url":"https://api.github.com/users/DLotero/received_events","type":"User","site_admin":false},"body":"the parenthesis in `(timeRandom)` are unnecessary ","created_at":"2018-10-03T21:25:41Z","updated_at":"2018-10-03T21:35:33Z","html_url":"https://github.com/wolox-training/lfr-react/pull/12#discussion_r222473146","pull_request_url":"https://api.github.com/repos/wolox-training/lfr-react/pulls/12","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/wolox-training/lfr-react/pulls/comments/222473146"},"html":{"href":"https://github.com/wolox-training/lfr-react/pull/12#discussion_r222473146"},"pull_request":{"href":"https://api.github.com/repos/wolox-training/lfr-react/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/wolox-training/lfr-react/pulls/12","id":220155052,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMTU1MDUy","html_url":"https://github.com/wolox-training/lfr-react/pull/12","diff_url":"https://github.com/wolox-training/lfr-react/pull/12.diff","patch_url":"https://github.com/wolox-training/lfr-react/pull/12.patch","issue_url":"https://api.github.com/repos/wolox-training/lfr-react/issues/12","number":12,"state":"open","locked":false,"title":"Promises","user":{"login":"unidrelyn","id":25165141,"node_id":"MDQ6VXNlcjI1MTY1MTQx","avatar_url":"https://avatars3.githubusercontent.com/u/25165141?v=4","gravatar_id":"","url":"https://api.github.com/users/unidrelyn","html_url":"https://github.com/unidrelyn","followers_url":"https://api.github.com/users/unidrelyn/followers","following_url":"https://api.github.com/users/unidrelyn/following{/other_user}","gists_url":"https://api.github.com/users/unidrelyn/gists{/gist_id}","starred_url":"https://api.github.com/users/unidrelyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unidrelyn/subscriptions","organizations_url":"https://api.github.com/users/unidrelyn/orgs","repos_url":"https://api.github.com/users/unidrelyn/repos","events_url":"https://api.github.com/users/unidrelyn/events{/privacy}","received_events_url":"https://api.github.com/users/unidrelyn/received_events","type":"User","site_admin":false},"body":"## Summary\r\n\r\nexercises of promises and async are completed\r\n\r\n## Screenshot\r\n![image](https://user-images.githubusercontent.com/25165141/46434643-d404e300-c719-11e8-82bc-1955bd6f4768.png)\r\n\r\n## Card Trello\r\nhttps://trello.com/c/0DRqDd4p/6-js-stack-ii-ecma-6-7","created_at":"2018-10-03T19:37:45Z","updated_at":"2018-10-03T21:35:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ff6ef6bb2b615e2d3ef1f62e809b149febde89d","assignee":{"login":"WFolini","id":12822259,"node_id":"MDQ6VXNlcjEyODIyMjU5","avatar_url":"https://avatars2.githubusercontent.com/u/12822259?v=4","gravatar_id":"","url":"https://api.github.com/users/WFolini","html_url":"https://github.com/WFolini","followers_url":"https://api.github.com/users/WFolini/followers","following_url":"https://api.github.com/users/WFolini/following{/other_user}","gists_url":"https://api.github.com/users/WFolini/gists{/gist_id}","starred_url":"https://api.github.com/users/WFolini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WFolini/subscriptions","organizations_url":"https://api.github.com/users/WFolini/orgs","repos_url":"https://api.github.com/users/WFolini/repos","events_url":"https://api.github.com/users/WFolini/events{/privacy}","received_events_url":"https://api.github.com/users/WFolini/received_events","type":"User","site_admin":false},"assignees":[{"login":"WFolini","id":12822259,"node_id":"MDQ6VXNlcjEyODIyMjU5","avatar_url":"https://avatars2.githubusercontent.com/u/12822259?v=4","gravatar_id":"","url":"https://api.github.com/users/WFolini","html_url":"https://github.com/WFolini","followers_url":"https://api.github.com/users/WFolini/followers","following_url":"https://api.github.com/users/WFolini/following{/other_user}","gists_url":"https://api.github.com/users/WFolini/gists{/gist_id}","starred_url":"https://api.github.com/users/WFolini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WFolini/subscriptions","organizations_url":"https://api.github.com/users/WFolini/orgs","repos_url":"https://api.github.com/users/WFolini/repos","events_url":"https://api.github.com/users/WFolini/events{/privacy}","received_events_url":"https://api.github.com/users/WFolini/received_events","type":"User","site_admin":false},{"login":"DLotero","id":17031033,"node_id":"MDQ6VXNlcjE3MDMxMDMz","avatar_url":"https://avatars1.githubusercontent.com/u/17031033?v=4","gravatar_id":"","url":"https://api.github.com/users/DLotero","html_url":"https://github.com/DLotero","followers_url":"https://api.github.com/users/DLotero/followers","following_url":"https://api.github.com/users/DLotero/following{/other_user}","gists_url":"https://api.github.com/users/DLotero/gists{/gist_id}","starred_url":"https://api.github.com/users/DLotero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DLotero/subscriptions","organizations_url":"https://api.github.com/users/DLotero/orgs","repos_url":"https://api.github.com/users/DLotero/repos","events_url":"https://api.github.com/users/DLotero/events{/privacy}","received_events_url":"https://api.github.com/users/DLotero/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"WFolini","id":12822259,"node_id":"MDQ6VXNlcjEyODIyMjU5","avatar_url":"https://avatars2.githubusercontent.com/u/12822259?v=4","gravatar_id":"","url":"https://api.github.com/users/WFolini","html_url":"https://github.com/WFolini","followers_url":"https://api.github.com/users/WFolini/followers","following_url":"https://api.github.com/users/WFolini/following{/other_user}","gists_url":"https://api.github.com/users/WFolini/gists{/gist_id}","starred_url":"https://api.github.com/users/WFolini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WFolini/subscriptions","organizations_url":"https://api.github.com/users/WFolini/orgs","repos_url":"https://api.github.com/users/WFolini/repos","events_url":"https://api.github.com/users/WFolini/events{/privacy}","received_events_url":"https://api.github.com/users/WFolini/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wolox-training/lfr-react/pulls/12/commits","review_comments_url":"https://api.github.com/repos/wolox-training/lfr-react/pulls/12/comments","review_comment_url":"https://api.github.com/repos/wolox-training/lfr-react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wolox-training/lfr-react/issues/12/comments","statuses_url":"https://api.github.com/repos/wolox-training/lfr-react/statuses/9d055cb35310be1cd5d8e60d9525269420233a46","head":{"label":"wolox-training:promises","ref":"promises","sha":"9d055cb35310be1cd5d8e60d9525269420233a46","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":149127836,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxMjc4MzY=","name":"lfr-react","full_name":"wolox-training/lfr-react","private":false,"owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wolox-training/lfr-react","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/lfr-react","forks_url":"https://api.github.com/repos/wolox-training/lfr-react/forks","keys_url":"https://api.github.com/repos/wolox-training/lfr-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/lfr-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/lfr-react/teams","hooks_url":"https://api.github.com/repos/wolox-training/lfr-react/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/lfr-react/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/lfr-react/events","assignees_url":"https://api.github.com/repos/wolox-training/lfr-react/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/lfr-react/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/lfr-react/tags","blobs_url":"https://api.github.com/repos/wolox-training/lfr-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/lfr-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/lfr-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/lfr-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/lfr-react/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/lfr-react/languages","stargazers_url":"https://api.github.com/repos/wolox-training/lfr-react/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/lfr-react/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/lfr-react/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/lfr-react/subscription","commits_url":"https://api.github.com/repos/wolox-training/lfr-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/lfr-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/lfr-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/lfr-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/lfr-react/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/lfr-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/lfr-react/merges","archive_url":"https://api.github.com/repos/wolox-training/lfr-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/lfr-react/downloads","issues_url":"https://api.github.com/repos/wolox-training/lfr-react/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/lfr-react/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/lfr-react/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/lfr-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/lfr-react/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/lfr-react/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/lfr-react/deployments","created_at":"2018-09-17T13:16:18Z","updated_at":"2018-10-03T19:33:27Z","pushed_at":"2018-10-03T19:37:46Z","git_url":"git://github.com/wolox-training/lfr-react.git","ssh_url":"git@github.com:wolox-training/lfr-react.git","clone_url":"https://github.com/wolox-training/lfr-react.git","svn_url":"https://github.com/wolox-training/lfr-react","homepage":null,"size":424,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"wolox-training:master","ref":"master","sha":"cbe683142563302cc6fabd3bd239030643ba36ec","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":149127836,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxMjc4MzY=","name":"lfr-react","full_name":"wolox-training/lfr-react","private":false,"owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wolox-training/lfr-react","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/lfr-react","forks_url":"https://api.github.com/repos/wolox-training/lfr-react/forks","keys_url":"https://api.github.com/repos/wolox-training/lfr-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/lfr-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/lfr-react/teams","hooks_url":"https://api.github.com/repos/wolox-training/lfr-react/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/lfr-react/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/lfr-react/events","assignees_url":"https://api.github.com/repos/wolox-training/lfr-react/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/lfr-react/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/lfr-react/tags","blobs_url":"https://api.github.com/repos/wolox-training/lfr-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/lfr-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/lfr-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/lfr-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/lfr-react/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/lfr-react/languages","stargazers_url":"https://api.github.com/repos/wolox-training/lfr-react/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/lfr-react/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/lfr-react/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/lfr-react/subscription","commits_url":"https://api.github.com/repos/wolox-training/lfr-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/lfr-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/lfr-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/lfr-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/lfr-react/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/lfr-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/lfr-react/merges","archive_url":"https://api.github.com/repos/wolox-training/lfr-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/lfr-react/downloads","issues_url":"https://api.github.com/repos/wolox-training/lfr-react/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/lfr-react/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/lfr-react/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/lfr-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/lfr-react/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/lfr-react/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/lfr-react/deployments","created_at":"2018-09-17T13:16:18Z","updated_at":"2018-10-03T19:33:27Z","pushed_at":"2018-10-03T19:37:46Z","git_url":"git://github.com/wolox-training/lfr-react.git","ssh_url":"git@github.com:wolox-training/lfr-react.git","clone_url":"https://github.com/wolox-training/lfr-react.git","svn_url":"https://github.com/wolox-training/lfr-react","homepage":null,"size":424,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wolox-training/lfr-react/pulls/12"},"html":{"href":"https://github.com/wolox-training/lfr-react/pull/12"},"issue":{"href":"https://api.github.com/repos/wolox-training/lfr-react/issues/12"},"comments":{"href":"https://api.github.com/repos/wolox-training/lfr-react/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/wolox-training/lfr-react/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/wolox-training/lfr-react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wolox-training/lfr-react/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/wolox-training/lfr-react/statuses/9d055cb35310be1cd5d8e60d9525269420233a46"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"DLotero"}}