-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Leading/Trailing throttle and throttleTime configuration (#2465)
* feat(throttle): add leading/trailing configurability Adds the ability to configure the `throttle` operator via a configuration object in the same manner as Lodash's throttle. Currently this defaults to the existing behavior, which is `{ leading: true, trailing: false }`. In an upcoming major version, I think we should change this to align with other libraries that have similar functionality. In particular Lodash, given it's popularity. NOTE: While working on this I discovered that the leading value is actually being emitted *after* the durationSelector is called and subscribed to. This is likely a bug, but I'll file a separate issue. related #1625 * feat(throttleTime): add leading/trailing configurability resolves #1625 * chore(throttle/throttleTime-spec): fix diagram text
- Loading branch information
Showing
4 changed files
with
160 additions
and
26 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