{"action":"created","issue":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/968","labels_url":"https://api.github.com/repos/xetorthio/jedis/issues/968/labels{/name}","comments_url":"https://api.github.com/repos/xetorthio/jedis/issues/968/comments","events_url":"https://api.github.com/repos/xetorthio/jedis/issues/968/events","html_url":"https://github.com/xetorthio/jedis/issues/968","id":71961211,"number":968,"title":"How to know when scan() is done?","user":{"login":"veselov","id":2555513,"avatar_url":"https://avatars.githubusercontent.com/u/2555513?v=3","gravatar_id":"","url":"https://api.github.com/users/veselov","html_url":"https://github.com/veselov","followers_url":"https://api.github.com/users/veselov/followers","following_url":"https://api.github.com/users/veselov/following{/other_user}","gists_url":"https://api.github.com/users/veselov/gists{/gist_id}","starred_url":"https://api.github.com/users/veselov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veselov/subscriptions","organizations_url":"https://api.github.com/users/veselov/orgs","repos_url":"https://api.github.com/users/veselov/repos","events_url":"https://api.github.com/users/veselov/events{/privacy}","received_events_url":"https://api.github.com/users/veselov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-29T19:09:55Z","updated_at":"2015-05-06T22:28:10Z","closed_at":null,"body":"Hi.\r\n\r\nFrom implementation, and Redis docs, it looks like that to know if scan() is finished, one needs to compare the latest cursor to literal `0`, right?\r\n\r\nIf so, may be ScanResult can have a isLast() method that would do that?"},"comment":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/comments/99629861","html_url":"https://github.com/xetorthio/jedis/issues/968#issuecomment-99629861","issue_url":"https://api.github.com/repos/xetorthio/jedis/issues/968","id":99629861,"user":{"login":"veselov","id":2555513,"avatar_url":"https://avatars.githubusercontent.com/u/2555513?v=3","gravatar_id":"","url":"https://api.github.com/users/veselov","html_url":"https://github.com/veselov","followers_url":"https://api.github.com/users/veselov/followers","following_url":"https://api.github.com/users/veselov/following{/other_user}","gists_url":"https://api.github.com/users/veselov/gists{/gist_id}","starred_url":"https://api.github.com/users/veselov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veselov/subscriptions","organizations_url":"https://api.github.com/users/veselov/orgs","repos_url":"https://api.github.com/users/veselov/repos","events_url":"https://api.github.com/users/veselov/events{/privacy}","received_events_url":"https://api.github.com/users/veselov/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T22:28:10Z","updated_at":"2015-05-06T22:28:10Z","body":"I agree with @HeartSaVioR point, but wouldn't that be tantamount to changing the protocol? Changing `cursor==0` condition is no different than changing any other contract Redis has, but Jedis does depend on other contracts."}}