{"action":"created","issue":{"url":"https://api.github.com/repos/danschultz/frappe/issues/30","labels_url":"https://api.github.com/repos/danschultz/frappe/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/danschultz/frappe/issues/30/comments","events_url":"https://api.github.com/repos/danschultz/frappe/issues/30/events","html_url":"https://github.com/danschultz/frappe/issues/30","id":59371939,"number":30,"title":"EventStream.debounce - code or documentation error?","user":{"login":"radicaled","id":40635,"avatar_url":"https://avatars.githubusercontent.com/u/40635?v=3","gravatar_id":"","url":"https://api.github.com/users/radicaled","html_url":"https://github.com/radicaled","followers_url":"https://api.github.com/users/radicaled/followers","following_url":"https://api.github.com/users/radicaled/following{/other_user}","gists_url":"https://api.github.com/users/radicaled/gists{/gist_id}","starred_url":"https://api.github.com/users/radicaled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radicaled/subscriptions","organizations_url":"https://api.github.com/users/radicaled/orgs","repos_url":"https://api.github.com/users/radicaled/repos","events_url":"https://api.github.com/users/radicaled/events{/privacy}","received_events_url":"https://api.github.com/users/radicaled/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-01T02:18:06Z","updated_at":"2015-03-02T05:38:22Z","closed_at":null,"body":"This is the documentation for `EventStream.debounce`:\r\n\r\n```\r\nReturns a new stream that upon forwarding an event from this stream, will ignore any subsequent events until duration, after which the last event will be forwarded.\r\n```\r\n\r\nIn practice, what `EventStream.debounce` seems to do is wait for `duration` to pass without any new events having come in, and _then_ forwards the last received event. This means that a time span longer than the specified `duration` can pass without an event being forwarded -- eg if a user is typing into a text field rapidly no 'content-modified' events get fired until they stop for at least `duration`.\r\n\r\nUsing 0.3.2."},"comment":{"url":"https://api.github.com/repos/danschultz/frappe/issues/comments/76661179","html_url":"https://github.com/danschultz/frappe/issues/30#issuecomment-76661179","issue_url":"https://api.github.com/repos/danschultz/frappe/issues/30","id":76661179,"user":{"login":"danschultz","id":37429,"avatar_url":"https://avatars.githubusercontent.com/u/37429?v=3","gravatar_id":"","url":"https://api.github.com/users/danschultz","html_url":"https://github.com/danschultz","followers_url":"https://api.github.com/users/danschultz/followers","following_url":"https://api.github.com/users/danschultz/following{/other_user}","gists_url":"https://api.github.com/users/danschultz/gists{/gist_id}","starred_url":"https://api.github.com/users/danschultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danschultz/subscriptions","organizations_url":"https://api.github.com/users/danschultz/orgs","repos_url":"https://api.github.com/users/danschultz/repos","events_url":"https://api.github.com/users/danschultz/events{/privacy}","received_events_url":"https://api.github.com/users/danschultz/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T05:38:22Z","updated_at":"2015-03-02T05:38:22Z","body":"Makes sense, I created ticket #34 to track the implementation. Let me know if the description doesn't cover your use case."}}