{"action":"opened","issue":{"url":"https://api.github.com/repos/juliemr/webdriverjs-retry/issues/5","labels_url":"https://api.github.com/repos/juliemr/webdriverjs-retry/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/juliemr/webdriverjs-retry/issues/5/comments","events_url":"https://api.github.com/repos/juliemr/webdriverjs-retry/issues/5/events","html_url":"https://github.com/juliemr/webdriverjs-retry/issues/5","id":81506544,"number":5,"title":"Retry.run doesn't sync with Protractor's control flow","user":{"login":"eolognt","id":10940539,"avatar_url":"https://avatars.githubusercontent.com/u/10940539?v=3","gravatar_id":"","url":"https://api.github.com/users/eolognt","html_url":"https://github.com/eolognt","followers_url":"https://api.github.com/users/eolognt/followers","following_url":"https://api.github.com/users/eolognt/following{/other_user}","gists_url":"https://api.github.com/users/eolognt/gists{/gist_id}","starred_url":"https://api.github.com/users/eolognt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eolognt/subscriptions","organizations_url":"https://api.github.com/users/eolognt/orgs","repos_url":"https://api.github.com/users/eolognt/repos","events_url":"https://api.github.com/users/eolognt/events{/privacy}","received_events_url":"https://api.github.com/users/eolognt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-27T15:51:35Z","updated_at":"2015-05-27T15:51:35Z","closed_at":null,"body":"Using this plugin with Protractor. Have these lines in my spec:\r\n```\r\nview.chat.sendMessage(1);\r\nretry.run(function () {\r\n    view.chat.sendMessage(2);\r\n});\r\nview.chat.sendMessage(3);\r\n```\r\n`view.chat.sendMessage` looks like this: \r\n```\r\nfunction () {\r\n    element(by.model('message')).sendKeys(msg);\r\n    return element(by.buttonText('Send')).click();\r\n}\r\n```\r\n\r\nI expected this output in my chat:\r\n```\r\n1\r\n2\r\n3\r\n```\r\nbut got this:\r\n```\r\n2\r\n1\r\n3\r\n```\r\nShouldn't actions in the function passed onto `retry.run` be added to the control flow and be executed in the order I expected?"}}