{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxJS/issues/493","labels_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/493/comments","events_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/493/events","html_url":"https://github.com/ReactiveX/RxJS/issues/493","id":110705391,"number":493,"title":"debounce operator with duration selector","user":{"login":"kwonoj","id":1210596,"avatar_url":"https://avatars.githubusercontent.com/u/1210596?v=3","gravatar_id":"","url":"https://api.github.com/users/kwonoj","html_url":"https://github.com/kwonoj","followers_url":"https://api.github.com/users/kwonoj/followers","following_url":"https://api.github.com/users/kwonoj/following{/other_user}","gists_url":"https://api.github.com/users/kwonoj/gists{/gist_id}","starred_url":"https://api.github.com/users/kwonoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwonoj/subscriptions","organizations_url":"https://api.github.com/users/kwonoj/orgs","repos_url":"https://api.github.com/users/kwonoj/repos","events_url":"https://api.github.com/users/kwonoj/events{/privacy}","received_events_url":"https://api.github.com/users/kwonoj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kwonoj","id":1210596,"avatar_url":"https://avatars.githubusercontent.com/u/1210596?v=3","gravatar_id":"","url":"https://api.github.com/users/kwonoj","html_url":"https://github.com/kwonoj","followers_url":"https://api.github.com/users/kwonoj/followers","following_url":"https://api.github.com/users/kwonoj/following{/other_user}","gists_url":"https://api.github.com/users/kwonoj/gists{/gist_id}","starred_url":"https://api.github.com/users/kwonoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwonoj/subscriptions","organizations_url":"https://api.github.com/users/kwonoj/orgs","repos_url":"https://api.github.com/users/kwonoj/repos","events_url":"https://api.github.com/users/kwonoj/events{/privacy}","received_events_url":"https://api.github.com/users/kwonoj/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-10-09T17:42:46Z","updated_at":"2015-10-09T18:51:34Z","closed_at":null,"body":"While trying to migrate test coverage in RxJS4, could observe difference between signature of `debounce` operator\r\n\r\nRxJS4\r\n```\r\nRx.Observable.prototype.debounce(dueTime, [scheduler])\r\nRx.Observable.prototype.debounce(durationSelector)\r\n```\r\n\r\nwhile current signature only allows first one\r\n`debounce<T>(dueTime: number, scheduler: Scheduler = nextTick)`\r\n\r\nNot sure if this is intended design or not - should operator to be updated, or test coverage for latter can be dropped off?"},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxJS/issues/comments/146959817","html_url":"https://github.com/ReactiveX/RxJS/issues/493#issuecomment-146959817","issue_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/493","id":146959817,"user":{"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},"created_at":"2015-10-09T18:51:34Z","updated_at":"2015-10-09T18:51:34Z","body":"Yeah... looking at this, it's probably best to rename what's there to `debounceTime` and add a `debounce` operator that takes an Observable as an argument. Likewise, we'll need to do this for `throttle` and `throttleTime` ... I'll take a look at that."}}