Skip to content

Custom exchange debouncing events #1256

Answered by arcanis
neoroma asked this question in Q&A
Discussion options

You must be logged in to vote

We simultaneously opened threads with very similar use cases 😄 (#1255)

I've played a bit with an adaptation of this snippet from @kitten (Server | Client), it seems to kinda work with some caveats but I'm not entirely sure how... in particular:

  • Thinking about it, I don't understand why debounce works - since all operations are evaluated into their own pipe (at least that's what I understood, otherwise I'd have expected ops$ to be provided with forward and client, not as a separate callback argument), how come the debounce context is shared? Shouldn't one new context be created for each time the ops$ function is called, thus turning the debounce into a kind of delay?
  • While the debounce se…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JoviDeCroock
Comment options

@arcanis
Comment options

@kitten
Comment options

@arcanis
Comment options

Answer selected by JoviDeCroock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants