Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 169
Registered: ‎03-25-2011
My Device: Playbook, Z10 L.E.
My Carrier: Vodafone NL

DelayedExecutionTimer - Great tip for throttling actions based on user input!

Hello guys,


I just would like to point out this cool implementation of how you can throttle code execution. For instance, imagine that you have to communicate with a remote service but not overload it with so you limit your app to only do 3 requests per second. In my case I had a Slider component that would send requests to the server but onImmediateValue changed was too fast and onValueChanged was too slow. This page was really helpful for solving my problem.


I hope you guys like it too. A functionality like this would be really useful for some of Cascades components so I wish it could be integrated in a future update. Or is it there already?


Here's the LINK!