-
-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
controller::Config
and debounce period to scheduler (#1265)
* add `controller::Config` and debounce period to scheduler Add `controller::Config` to allow configuring the behavior of the controller. Introduce a debounce period for the scheduler to allow for deduplication of requests. By default, the debounce period is set to 1 second. Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com> * add `scheduler_debounced()` to configure debounce for scheduler Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com> * address clippy warnings Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com> * improve tests and docs Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com> * make `controller::Config::debounce()` a builder Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com> --------- Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com> Co-authored-by: Eirik A <sszynrae@gmail.com>
- Loading branch information
Showing
5 changed files
with
148 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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