Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Debounce wants #245

@dirkmc

Description

@dirkmc

Currently we debounce sending wants by a millisecond. If a client sends continuous requests at a higher frequency than the debounce time, the request will never be sent.

Proposed Solution:
Add a debounce function to the message queue that takes two parameters:

  • debounce time
    wait at least this interval after the last invocation before calling the target function
  • max time
    if we're still debouncing after this amount of time, don't wait any more, call the target function anyway

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions