{"action":"opened","number":663,"pull_request":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/pulls/663","id":33359483,"html_url":"https://github.com/Reactive-Extensions/RxJS/pull/663","diff_url":"https://github.com/Reactive-Extensions/RxJS/pull/663.diff","patch_url":"https://github.com/Reactive-Extensions/RxJS/pull/663.patch","issue_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/663","number":663,"state":"open","locked":false,"title":"correct example use of scheduler in generator","user":{"login":"jeffbski","id":5689,"avatar_url":"https://avatars.githubusercontent.com/u/5689?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffbski","html_url":"https://github.com/jeffbski","followers_url":"https://api.github.com/users/jeffbski/followers","following_url":"https://api.github.com/users/jeffbski/following{/other_user}","gists_url":"https://api.github.com/users/jeffbski/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffbski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffbski/subscriptions","organizations_url":"https://api.github.com/users/jeffbski/orgs","repos_url":"https://api.github.com/users/jeffbski/repos","events_url":"https://api.github.com/users/jeffbski/events{/privacy}","received_events_url":"https://api.github.com/users/jeffbski/received_events","type":"User","site_admin":false},"body":"If I understand the code, as an alternative to using x.observeOn(scheduler), one can just provide a scheduler to the generate method.\r\n\r\nI think the `observeOn` is not necessary (maybe was copy and paste error).\r\n\r\nExample should read\r\n\r\n```javascript\r\nRx.Observable.generate(\r\n  0,\r\n  function () { return true; },\r\n  function (x) { return x + 1; },\r\n  function (x) { return x; },\r\n  Rx.Scheduler.default)\r\n  .subscribe(...);\r\n```","created_at":"2015-04-15T14:24:31Z","updated_at":"2015-04-15T14:24:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/pulls/663/commits","review_comments_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/pulls/663/comments","review_comment_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/663/comments","statuses_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/statuses/b243919a7be2bbf1486be314b0ddc87a96fe275a","head":{"label":"jeffbski:docSchedulers","ref":"docSchedulers","sha":"b243919a7be2bbf1486be314b0ddc87a96fe275a","user":{"login":"jeffbski","id":5689,"avatar_url":"https://avatars.githubusercontent.com/u/5689?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffbski","html_url":"https://github.com/jeffbski","followers_url":"https://api.github.com/users/jeffbski/followers","following_url":"https://api.github.com/users/jeffbski/following{/other_user}","gists_url":"https://api.github.com/users/jeffbski/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffbski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffbski/subscriptions","organizations_url":"https://api.github.com/users/jeffbski/orgs","repos_url":"https://api.github.com/users/jeffbski/repos","events_url":"https://api.github.com/users/jeffbski/events{/privacy}","received_events_url":"https://api.github.com/users/jeffbski/received_events","type":"User","site_admin":false},"repo":{"id":33997607,"name":"RxJS","full_name":"jeffbski/RxJS","owner":{"login":"jeffbski","id":5689,"avatar_url":"https://avatars.githubusercontent.com/u/5689?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffbski","html_url":"https://github.com/jeffbski","followers_url":"https://api.github.com/users/jeffbski/followers","following_url":"https://api.github.com/users/jeffbski/following{/other_user}","gists_url":"https://api.github.com/users/jeffbski/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffbski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffbski/subscriptions","organizations_url":"https://api.github.com/users/jeffbski/orgs","repos_url":"https://api.github.com/users/jeffbski/repos","events_url":"https://api.github.com/users/jeffbski/events{/privacy}","received_events_url":"https://api.github.com/users/jeffbski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffbski/RxJS","description":"The Reactive Extensions for JavaScript","fork":true,"url":"https://api.github.com/repos/jeffbski/RxJS","forks_url":"https://api.github.com/repos/jeffbski/RxJS/forks","keys_url":"https://api.github.com/repos/jeffbski/RxJS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffbski/RxJS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffbski/RxJS/teams","hooks_url":"https://api.github.com/repos/jeffbski/RxJS/hooks","issue_events_url":"https://api.github.com/repos/jeffbski/RxJS/issues/events{/number}","events_url":"https://api.github.com/repos/jeffbski/RxJS/events","assignees_url":"https://api.github.com/repos/jeffbski/RxJS/assignees{/user}","branches_url":"https://api.github.com/repos/jeffbski/RxJS/branches{/branch}","tags_url":"https://api.github.com/repos/jeffbski/RxJS/tags","blobs_url":"https://api.github.com/repos/jeffbski/RxJS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffbski/RxJS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffbski/RxJS/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffbski/RxJS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffbski/RxJS/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffbski/RxJS/languages","stargazers_url":"https://api.github.com/repos/jeffbski/RxJS/stargazers","contributors_url":"https://api.github.com/repos/jeffbski/RxJS/contributors","subscribers_url":"https://api.github.com/repos/jeffbski/RxJS/subscribers","subscription_url":"https://api.github.com/repos/jeffbski/RxJS/subscription","commits_url":"https://api.github.com/repos/jeffbski/RxJS/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffbski/RxJS/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffbski/RxJS/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffbski/RxJS/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffbski/RxJS/contents/{+path}","compare_url":"https://api.github.com/repos/jeffbski/RxJS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffbski/RxJS/merges","archive_url":"https://api.github.com/repos/jeffbski/RxJS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffbski/RxJS/downloads","issues_url":"https://api.github.com/repos/jeffbski/RxJS/issues{/number}","pulls_url":"https://api.github.com/repos/jeffbski/RxJS/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffbski/RxJS/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffbski/RxJS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffbski/RxJS/labels{/name}","releases_url":"https://api.github.com/repos/jeffbski/RxJS/releases{/id}","created_at":"2015-04-15T14:08:49Z","updated_at":"2015-04-15T14:08:52Z","pushed_at":"2015-04-15T14:20:30Z","git_url":"git://github.com/jeffbski/RxJS.git","ssh_url":"git@github.com:jeffbski/RxJS.git","clone_url":"https://github.com/jeffbski/RxJS.git","svn_url":"https://github.com/jeffbski/RxJS","homepage":"http://reactivex.io","size":42153,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Reactive-Extensions:master","ref":"master","sha":"5f2ceb02a391d176d562d6fb73d7eb5eac9b441f","user":{"login":"Reactive-Extensions","id":984368,"avatar_url":"https://avatars.githubusercontent.com/u/984368?v=3","gravatar_id":"","url":"https://api.github.com/users/Reactive-Extensions","html_url":"https://github.com/Reactive-Extensions","followers_url":"https://api.github.com/users/Reactive-Extensions/followers","following_url":"https://api.github.com/users/Reactive-Extensions/following{/other_user}","gists_url":"https://api.github.com/users/Reactive-Extensions/gists{/gist_id}","starred_url":"https://api.github.com/users/Reactive-Extensions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reactive-Extensions/subscriptions","organizations_url":"https://api.github.com/users/Reactive-Extensions/orgs","repos_url":"https://api.github.com/users/Reactive-Extensions/repos","events_url":"https://api.github.com/users/Reactive-Extensions/events{/privacy}","received_events_url":"https://api.github.com/users/Reactive-Extensions/received_events","type":"Organization","site_admin":false},"repo":{"id":3122202,"name":"RxJS","full_name":"Reactive-Extensions/RxJS","owner":{"login":"Reactive-Extensions","id":984368,"avatar_url":"https://avatars.githubusercontent.com/u/984368?v=3","gravatar_id":"","url":"https://api.github.com/users/Reactive-Extensions","html_url":"https://github.com/Reactive-Extensions","followers_url":"https://api.github.com/users/Reactive-Extensions/followers","following_url":"https://api.github.com/users/Reactive-Extensions/following{/other_user}","gists_url":"https://api.github.com/users/Reactive-Extensions/gists{/gist_id}","starred_url":"https://api.github.com/users/Reactive-Extensions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reactive-Extensions/subscriptions","organizations_url":"https://api.github.com/users/Reactive-Extensions/orgs","repos_url":"https://api.github.com/users/Reactive-Extensions/repos","events_url":"https://api.github.com/users/Reactive-Extensions/events{/privacy}","received_events_url":"https://api.github.com/users/Reactive-Extensions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Reactive-Extensions/RxJS","description":"The Reactive Extensions for JavaScript","fork":false,"url":"https://api.github.com/repos/Reactive-Extensions/RxJS","forks_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/forks","keys_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/teams","hooks_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/hooks","issue_events_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/events{/number}","events_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/events","assignees_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/assignees{/user}","branches_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/branches{/branch}","tags_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/tags","blobs_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/statuses/{sha}","languages_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/languages","stargazers_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/stargazers","contributors_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/contributors","subscribers_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/subscribers","subscription_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/subscription","commits_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/contents/{+path}","compare_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/merges","archive_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/downloads","issues_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues{/number}","pulls_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/pulls{/number}","milestones_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/milestones{/number}","notifications_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/labels{/name}","releases_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/releases{/id}","created_at":"2012-01-07T00:31:41Z","updated_at":"2015-04-15T14:08:45Z","pushed_at":"2015-04-15T13:54:17Z","git_url":"git://github.com/Reactive-Extensions/RxJS.git","ssh_url":"git@github.com:Reactive-Extensions/RxJS.git","clone_url":"https://github.com/Reactive-Extensions/RxJS.git","svn_url":"https://github.com/Reactive-Extensions/RxJS","homepage":"http://reactivex.io","size":42153,"stargazers_count":3646,"watchers_count":3646,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":342,"mirror_url":null,"open_issues_count":19,"forks":342,"open_issues":19,"watchers":3646,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Reactive-Extensions/RxJS/pulls/663"},"html":{"href":"https://github.com/Reactive-Extensions/RxJS/pull/663"},"issue":{"href":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/663"},"comments":{"href":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/663/comments"},"review_comments":{"href":"https://api.github.com/repos/Reactive-Extensions/RxJS/pulls/663/comments"},"review_comment":{"href":"https://api.github.com/repos/Reactive-Extensions/RxJS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Reactive-Extensions/RxJS/pulls/663/commits"},"statuses":{"href":"https://api.github.com/repos/Reactive-Extensions/RxJS/statuses/b243919a7be2bbf1486be314b0ddc87a96fe275a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}