google / google/quiver-dart

Add throttle/debounce to quiver.streams

Open
#116 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
1.1k
Forks
133
PR merge metrics
No merged PRs in 30d

Description

See:

http://lodash.com/docs#throttle
http://lodash.com/docs#debounce

In dart these translate to Stream transformations:

``` dart
Stream throttle(Stream stream, Duration wait, {bool leading: true, bool trailing: true});
Stream debounce(Stream stream, Duration wait, {Duration maxWait, bool leading: false, bool trailing: true});
```

Here is the existing dart core feature request:

http://dartbug.com/8492

Contributor guide

Open the contributing guide

Research direction

Start by locating the quiver.streams library and review the requested throttle and debounce signatures in this issue. Compare their intended behavior with the linked lodash documentation and Dart core feature request; done means both stream transformations support the stated options and wait durations.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.