{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/rxjs/issues/1873","repository_url":"https://api.github.com/repos/ReactiveX/rxjs","labels_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/1873/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/1873/comments","events_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/1873/events","html_url":"https://github.com/ReactiveX/rxjs/issues/1873","id":170474379,"number":1873,"title":"QueueScheduler schedule method: this.SchedulerAction is not a constructor","user":{"login":"augustinr","id":8281231,"avatar_url":"https://avatars.githubusercontent.com/u/8281231?v=3","gravatar_id":"","url":"https://api.github.com/users/augustinr","html_url":"https://github.com/augustinr","followers_url":"https://api.github.com/users/augustinr/followers","following_url":"https://api.github.com/users/augustinr/following{/other_user}","gists_url":"https://api.github.com/users/augustinr/gists{/gist_id}","starred_url":"https://api.github.com/users/augustinr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/augustinr/subscriptions","organizations_url":"https://api.github.com/users/augustinr/orgs","repos_url":"https://api.github.com/users/augustinr/repos","events_url":"https://api.github.com/users/augustinr/events{/privacy}","received_events_url":"https://api.github.com/users/augustinr/received_events","type":"User","site_admin":false},"labels":[{"id":187400551,"url":"https://api.github.com/repos/ReactiveX/rxjs/labels/type:%20bug","name":"type: bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":{"login":"blesh","id":1540597,"avatar_url":"https://avatars.githubusercontent.com/u/1540597?v=3","gravatar_id":"","url":"https://api.github.com/users/blesh","html_url":"https://github.com/blesh","followers_url":"https://api.github.com/users/blesh/followers","following_url":"https://api.github.com/users/blesh/following{/other_user}","gists_url":"https://api.github.com/users/blesh/gists{/gist_id}","starred_url":"https://api.github.com/users/blesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blesh/subscriptions","organizations_url":"https://api.github.com/users/blesh/orgs","repos_url":"https://api.github.com/users/blesh/repos","events_url":"https://api.github.com/users/blesh/events{/privacy}","received_events_url":"https://api.github.com/users/blesh/received_events","type":"User","site_admin":false},"assignees":[{"login":"blesh","id":1540597,"avatar_url":"https://avatars.githubusercontent.com/u/1540597?v=3","gravatar_id":"","url":"https://api.github.com/users/blesh","html_url":"https://github.com/blesh","followers_url":"https://api.github.com/users/blesh/followers","following_url":"https://api.github.com/users/blesh/following{/other_user}","gists_url":"https://api.github.com/users/blesh/gists{/gist_id}","starred_url":"https://api.github.com/users/blesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blesh/subscriptions","organizations_url":"https://api.github.com/users/blesh/orgs","repos_url":"https://api.github.com/users/blesh/repos","events_url":"https://api.github.com/users/blesh/events{/privacy}","received_events_url":"https://api.github.com/users/blesh/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-08-10T17:34:18Z","updated_at":"2016-12-15T21:24:46Z","closed_at":null,"body":"**RxJS version:** 5.0.0-beta11\n\n**Actual behavior:**\nI tried to use the beta 11 today in the project I'm working on, and the QueueSchduler schedule method raises the following error:\nTypeError: this.SchedulerAction is not a constructor.\n\n**Code to reproduce:**\nActually it seems that the SchedulerAction is not defined. The error is raised by running the schedule method of an instance we create:\n\n``` js\nscheduler = new QueueScheduler();\nscheduler.schedule(() => someSubject.next(someState), 0)\n```\n\n**Additional information:**\nBy reading the Scheduler class, I found out the constructor does not set the SchedulerAction attributes: \n\n``` ts\nconstructor(private SchedulerAction: typeof Action,\n              now: () => number = Scheduler.now) {\n    this.now = now;\n  }\n```\n\nI may missed something, but is the following line not missing ?\n\n``` ts\nthis.SchedulerAction = SchedulerAction;\n```\n\nAlso, the QueueScheduler class could reuse the Scheduler constructor with QueueAction by default ?\n\n``` ts\n// QueueScheduler.ts\nexport class QueueScheduler extends AsyncScheduler {\n  constructor(private SchedulerAction: typeof Action = QueueAction) {\n    super(SchedulerAction);\n  }\n}\n\n// queue.ts\nexport const queue = new QueueScheduler();\n```\n\nIm also wondering if I'm doing wrong when instantiating  a QueueScheduler, maybe only use Scheduler.queue could be sufficient...\n\nThanks for this great repo !\n\n++\n\nAugustin\n"},"comment":{"url":"https://api.github.com/repos/ReactiveX/rxjs/issues/comments/267448191","html_url":"https://github.com/ReactiveX/rxjs/issues/1873#issuecomment-267448191","issue_url":"https://api.github.com/repos/ReactiveX/rxjs/issues/1873","id":267448191,"user":{"login":"trxcllnt","id":178183,"avatar_url":"https://avatars.githubusercontent.com/u/178183?v=3","gravatar_id":"","url":"https://api.github.com/users/trxcllnt","html_url":"https://github.com/trxcllnt","followers_url":"https://api.github.com/users/trxcllnt/followers","following_url":"https://api.github.com/users/trxcllnt/following{/other_user}","gists_url":"https://api.github.com/users/trxcllnt/gists{/gist_id}","starred_url":"https://api.github.com/users/trxcllnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trxcllnt/subscriptions","organizations_url":"https://api.github.com/users/trxcllnt/orgs","repos_url":"https://api.github.com/users/trxcllnt/repos","events_url":"https://api.github.com/users/trxcllnt/events{/privacy}","received_events_url":"https://api.github.com/users/trxcllnt/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T21:24:46Z","updated_at":"2016-12-15T21:24:46Z","body":"@mattpodwysocki yes! happy to finally be moving forward on this. just pushed a [`virtual-time-schedulers`](https://github.com/ReactiveX/rxjs/tree/virtual-time-schedulers) branch for us to collaborate."}}
{"actor":{"display_login":"trxcllnt"}}