migrator / guava-libraries-2

Guava: Google Core Libraries for Java 1.6+
0 stars 0 forks source link

Add Debounce and Throttle to Guava? #7

Open migrator opened 10 years ago

migrator commented 10 years ago

Would it be interesting to have something like Debounce and Throttle functions in Guava?

I really like those 2 and have used them from Underscore.js a couple times.

I Think they are more like a functional thing, but nevertheless they are very useful for handling UI events.

http://underscorejs.org/#throttle http://underscorejs.org/#debounce

I could try to send a pull request if you guys thing it would be usefull to Guava to have those.

Cheers

relevance: 1