debounce/Time without emission on complete #6465
backbone87
started this conversation in
Ideas / Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be nice if an option could be added to the debounce/Time operators to control the "emit on complete" behavior.
debounceTime(1000, { emitOnComplete: 'immediate' })
: default behavior, same as current implementationdebounceTime(1000, { emitOnComplete: 'discard' })
: complete downstream without emission of a potentially buffered valuedebounceTime(1000, { emitOnComplete: 'debounce' })
: await the normal debounce timeout, if there is a value buffered, then emit and completeedit: I know I can use
takeUntil
downstream, but that would require multicasting or passing around a signal controller patternedit2: would also be useful on audit/Time operators
Beta Was this translation helpful? Give feedback.
All reactions