{"action":"created","comment":{"url":"https://api.github.com/repos/akka/akka/pulls/comments/60907112","id":60907112,"diff_hunk":"@@ -204,6 +204,17 @@ object Source {\n     })\n \n   /**\n+   * Create [[Source]] that will continually produce given elements in specified order.\n+   *\n+   * Start a new 'cycled' `Source` from the given elements. The producer stream of elements\n+   * will continue infinitely by repeating the same sequence of elements provided during construction.\n+   */\n+  def cycle[T](f: () ⇒ Iterator[T]): Source[T, NotUsed] = fromIterator(() ⇒ {\n+    if (f().isEmpty) Iterator.empty","path":"akka-stream/src/main/scala/akka/stream/scaladsl/Source.scala","position":10,"original_position":10,"commit_id":"9fcdf36021a0e754b021fe7d7bbda06000190e58","original_commit_id":"9fcdf36021a0e754b021fe7d7bbda06000190e58","user":{"login":"kelebra","id":2006595,"avatar_url":"https://avatars.githubusercontent.com/u/2006595?v=3","gravatar_id":"","url":"https://api.github.com/users/kelebra","html_url":"https://github.com/kelebra","followers_url":"https://api.github.com/users/kelebra/followers","following_url":"https://api.github.com/users/kelebra/following{/other_user}","gists_url":"https://api.github.com/users/kelebra/gists{/gist_id}","starred_url":"https://api.github.com/users/kelebra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelebra/subscriptions","organizations_url":"https://api.github.com/users/kelebra/orgs","repos_url":"https://api.github.com/users/kelebra/repos","events_url":"https://api.github.com/users/kelebra/events{/privacy}","received_events_url":"https://api.github.com/users/kelebra/received_events","type":"User","site_admin":false},"body":"Do agree. Let me update implementation and docs today.","created_at":"2016-04-25T12:51:55Z","updated_at":"2016-04-25T12:51:55Z","html_url":"https://github.com/akka/akka/pull/20125#discussion_r60907112","pull_request_url":"https://api.github.com/repos/akka/akka/pulls/20125","_links":{"self":{"href":"https://api.github.com/repos/akka/akka/pulls/comments/60907112"},"html":{"href":"https://github.com/akka/akka/pull/20125#discussion_r60907112"},"pull_request":{"href":"https://api.github.com/repos/akka/akka/pulls/20125"}}},"pull_request":{"url":"https://api.github.com/repos/akka/akka/pulls/20125","id":63824866,"html_url":"https://github.com/akka/akka/pull/20125","diff_url":"https://github.com/akka/akka/pull/20125.diff","patch_url":"https://github.com/akka/akka/pull/20125.patch","issue_url":"https://api.github.com/repos/akka/akka/issues/20125","number":20125,"state":"open","locked":false,"title":"#19039: Added cycle method to Source class.","user":{"login":"kelebra","id":2006595,"avatar_url":"https://avatars.githubusercontent.com/u/2006595?v=3","gravatar_id":"","url":"https://api.github.com/users/kelebra","html_url":"https://github.com/kelebra","followers_url":"https://api.github.com/users/kelebra/followers","following_url":"https://api.github.com/users/kelebra/following{/other_user}","gists_url":"https://api.github.com/users/kelebra/gists{/gist_id}","starred_url":"https://api.github.com/users/kelebra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelebra/subscriptions","organizations_url":"https://api.github.com/users/kelebra/orgs","repos_url":"https://api.github.com/users/kelebra/repos","events_url":"https://api.github.com/users/kelebra/events{/privacy}","received_events_url":"https://api.github.com/users/kelebra/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-23T02:59:48Z","updated_at":"2016-04-25T12:51:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f45bb3c43a79626dec0eb0501bf9cfe207ff442","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akka/akka/pulls/20125/commits","review_comments_url":"https://api.github.com/repos/akka/akka/pulls/20125/comments","review_comment_url":"https://api.github.com/repos/akka/akka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akka/akka/issues/20125/comments","statuses_url":"https://api.github.com/repos/akka/akka/statuses/9fcdf36021a0e754b021fe7d7bbda06000190e58","head":{"label":"kelebra:19039-kelebra-cycle","ref":"19039-kelebra-cycle","sha":"9fcdf36021a0e754b021fe7d7bbda06000190e58","user":{"login":"kelebra","id":2006595,"avatar_url":"https://avatars.githubusercontent.com/u/2006595?v=3","gravatar_id":"","url":"https://api.github.com/users/kelebra","html_url":"https://github.com/kelebra","followers_url":"https://api.github.com/users/kelebra/followers","following_url":"https://api.github.com/users/kelebra/following{/other_user}","gists_url":"https://api.github.com/users/kelebra/gists{/gist_id}","starred_url":"https://api.github.com/users/kelebra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelebra/subscriptions","organizations_url":"https://api.github.com/users/kelebra/orgs","repos_url":"https://api.github.com/users/kelebra/repos","events_url":"https://api.github.com/users/kelebra/events{/privacy}","received_events_url":"https://api.github.com/users/kelebra/received_events","type":"User","site_admin":false},"repo":{"id":54516539,"name":"akka","full_name":"kelebra/akka","owner":{"login":"kelebra","id":2006595,"avatar_url":"https://avatars.githubusercontent.com/u/2006595?v=3","gravatar_id":"","url":"https://api.github.com/users/kelebra","html_url":"https://github.com/kelebra","followers_url":"https://api.github.com/users/kelebra/followers","following_url":"https://api.github.com/users/kelebra/following{/other_user}","gists_url":"https://api.github.com/users/kelebra/gists{/gist_id}","starred_url":"https://api.github.com/users/kelebra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelebra/subscriptions","organizations_url":"https://api.github.com/users/kelebra/orgs","repos_url":"https://api.github.com/users/kelebra/repos","events_url":"https://api.github.com/users/kelebra/events{/privacy}","received_events_url":"https://api.github.com/users/kelebra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kelebra/akka","description":"Akka Project","fork":true,"url":"https://api.github.com/repos/kelebra/akka","forks_url":"https://api.github.com/repos/kelebra/akka/forks","keys_url":"https://api.github.com/repos/kelebra/akka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kelebra/akka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kelebra/akka/teams","hooks_url":"https://api.github.com/repos/kelebra/akka/hooks","issue_events_url":"https://api.github.com/repos/kelebra/akka/issues/events{/number}","events_url":"https://api.github.com/repos/kelebra/akka/events","assignees_url":"https://api.github.com/repos/kelebra/akka/assignees{/user}","branches_url":"https://api.github.com/repos/kelebra/akka/branches{/branch}","tags_url":"https://api.github.com/repos/kelebra/akka/tags","blobs_url":"https://api.github.com/repos/kelebra/akka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kelebra/akka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kelebra/akka/git/refs{/sha}","trees_url":"https://api.github.com/repos/kelebra/akka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kelebra/akka/statuses/{sha}","languages_url":"https://api.github.com/repos/kelebra/akka/languages","stargazers_url":"https://api.github.com/repos/kelebra/akka/stargazers","contributors_url":"https://api.github.com/repos/kelebra/akka/contributors","subscribers_url":"https://api.github.com/repos/kelebra/akka/subscribers","subscription_url":"https://api.github.com/repos/kelebra/akka/subscription","commits_url":"https://api.github.com/repos/kelebra/akka/commits{/sha}","git_commits_url":"https://api.github.com/repos/kelebra/akka/git/commits{/sha}","comments_url":"https://api.github.com/repos/kelebra/akka/comments{/number}","issue_comment_url":"https://api.github.com/repos/kelebra/akka/issues/comments{/number}","contents_url":"https://api.github.com/repos/kelebra/akka/contents/{+path}","compare_url":"https://api.github.com/repos/kelebra/akka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kelebra/akka/merges","archive_url":"https://api.github.com/repos/kelebra/akka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kelebra/akka/downloads","issues_url":"https://api.github.com/repos/kelebra/akka/issues{/number}","pulls_url":"https://api.github.com/repos/kelebra/akka/pulls{/number}","milestones_url":"https://api.github.com/repos/kelebra/akka/milestones{/number}","notifications_url":"https://api.github.com/repos/kelebra/akka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kelebra/akka/labels{/name}","releases_url":"https://api.github.com/repos/kelebra/akka/releases{/id}","deployments_url":"https://api.github.com/repos/kelebra/akka/deployments","created_at":"2016-03-22T23:44:28Z","updated_at":"2016-03-22T23:44:40Z","pushed_at":"2016-04-24T01:56:31Z","git_url":"git://github.com/kelebra/akka.git","ssh_url":"git@github.com:kelebra/akka.git","clone_url":"https://github.com/kelebra/akka.git","svn_url":"https://github.com/kelebra/akka","homepage":"http://akka.io","size":192027,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"akka:master","ref":"master","sha":"531f0afc6625763e766f453c24ac3c5385d46473","user":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"repo":{"id":130013,"name":"akka","full_name":"akka/akka","owner":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akka/akka","description":"Akka Project","fork":false,"url":"https://api.github.com/repos/akka/akka","forks_url":"https://api.github.com/repos/akka/akka/forks","keys_url":"https://api.github.com/repos/akka/akka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akka/akka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akka/akka/teams","hooks_url":"https://api.github.com/repos/akka/akka/hooks","issue_events_url":"https://api.github.com/repos/akka/akka/issues/events{/number}","events_url":"https://api.github.com/repos/akka/akka/events","assignees_url":"https://api.github.com/repos/akka/akka/assignees{/user}","branches_url":"https://api.github.com/repos/akka/akka/branches{/branch}","tags_url":"https://api.github.com/repos/akka/akka/tags","blobs_url":"https://api.github.com/repos/akka/akka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akka/akka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akka/akka/git/refs{/sha}","trees_url":"https://api.github.com/repos/akka/akka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akka/akka/statuses/{sha}","languages_url":"https://api.github.com/repos/akka/akka/languages","stargazers_url":"https://api.github.com/repos/akka/akka/stargazers","contributors_url":"https://api.github.com/repos/akka/akka/contributors","subscribers_url":"https://api.github.com/repos/akka/akka/subscribers","subscription_url":"https://api.github.com/repos/akka/akka/subscription","commits_url":"https://api.github.com/repos/akka/akka/commits{/sha}","git_commits_url":"https://api.github.com/repos/akka/akka/git/commits{/sha}","comments_url":"https://api.github.com/repos/akka/akka/comments{/number}","issue_comment_url":"https://api.github.com/repos/akka/akka/issues/comments{/number}","contents_url":"https://api.github.com/repos/akka/akka/contents/{+path}","compare_url":"https://api.github.com/repos/akka/akka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akka/akka/merges","archive_url":"https://api.github.com/repos/akka/akka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akka/akka/downloads","issues_url":"https://api.github.com/repos/akka/akka/issues{/number}","pulls_url":"https://api.github.com/repos/akka/akka/pulls{/number}","milestones_url":"https://api.github.com/repos/akka/akka/milestones{/number}","notifications_url":"https://api.github.com/repos/akka/akka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akka/akka/labels{/name}","releases_url":"https://api.github.com/repos/akka/akka/releases{/id}","deployments_url":"https://api.github.com/repos/akka/akka/deployments","created_at":"2009-02-16T12:51:54Z","updated_at":"2016-04-25T08:29:19Z","pushed_at":"2016-04-25T10:01:03Z","git_url":"git://github.com/akka/akka.git","ssh_url":"git@github.com:akka/akka.git","clone_url":"https://github.com/akka/akka.git","svn_url":"https://github.com/akka/akka","homepage":"http://akka.io","size":204826,"stargazers_count":5414,"watchers_count":5414,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1683,"mirror_url":null,"open_issues_count":713,"forks":1683,"open_issues":713,"watchers":5414,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akka/akka/pulls/20125"},"html":{"href":"https://github.com/akka/akka/pull/20125"},"issue":{"href":"https://api.github.com/repos/akka/akka/issues/20125"},"comments":{"href":"https://api.github.com/repos/akka/akka/issues/20125/comments"},"review_comments":{"href":"https://api.github.com/repos/akka/akka/pulls/20125/comments"},"review_comment":{"href":"https://api.github.com/repos/akka/akka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akka/akka/pulls/20125/commits"},"statuses":{"href":"https://api.github.com/repos/akka/akka/statuses/9fcdf36021a0e754b021fe7d7bbda06000190e58"}}}}