ReplaySubject should have a method for clearing items from the buffer #7182
JamesJansson
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
Uh oh!
There was an error while loading. Please reload this page.
-
Pretty self explanatory. Sometimes you want to remove items from the buffer, if the items are no longer useful. e.g. the user clears the history of recently entered search terms.
I would propose a simple function, such as
.clearBuffer()
which would work in a similar way to_trimBuffer()
but simply calls_buffer.splice(0,_buffer.length);
Is there any reason why this would be a bad idea or unwelcome? I am willing to write this if this concept is generally accepted.
Beta Was this translation helpful? Give feedback.
All reactions