Add accumulating variant of Stream.debounce#3028
Open
m50d wants to merge 10 commits intotypelevel:mainfrom
Open
Add accumulating variant of Stream.debounce#3028m50d wants to merge 10 commits intotypelevel:mainfrom
Stream.debounce#3028m50d wants to merge 10 commits intotypelevel:mainfrom
Conversation
Author
|
Appreciate there were a number of failures that were my fault, but I can't understand the latest one (native linking failure) - what's the issue here? |
Member
|
Just a flake :) |
Member
|
Any thoughts on |
Author
|
It wasn't a particularly thought-through choice, just the type I reached for. For my specific use case a type that expresses that it's always non-empty is helpful, but happy to switch it to |
Member
|
OK cool, I think we should switch to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I don't know if there's enough demand/need for this, but I had a use case where I needed something like
debouncebut that keeps all the elements of the stream, and it seemed generic enough to be worth sharing.