question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Howdy. I’d be interested in adding a throttle module, but had a few questions before doing so. As for implementation, I was thinking something along the lines of:

var flyd = require('flyd');
var _throttle = require('lodash.throttle');

module.exports = flyd.curryN(2, throttle(ms, s) {
  return flyd.combine(_throttle(function(s, self) {
    self(s());
  }, ms), [s]);
});

My questions:

  1. Can this more or less already be achieved with what’s here, and I’m just missing it?
  2. I’m fairly new to this reactive stuff. Is this implementation more or less analogous with throttle from RxJS et al (of course, sans schedulers and what not)?
  3. This would add a dependency on lodash.throttle. As such, do you have a preference on this module living here vs a dedicated repo?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
garkincommented, Nov 15, 2016

Also debounce, delay. Those things are massively useful for tuning asynchronous flows.

0reactions
janat08commented, Mar 8, 2019

I meant something that starts immediately: s: 1111 d: 1-1-

Read more comments on GitHub >

github_iconTop Results From Across the Web

20-2599 K&N Throttle Control Module
The K&N Throttle Control Module is designed to improve throttle response and acceleration, and increases pedal sensitivity without modifying factory ECU ...
Read more >
What Is a Throttle Response Control Module? - MotorTrend
The controllers are small electronic boxes that tie into a vehicle's throttle-pedal-to-ECM circuitry and modify the pedal-position voltage ...
Read more >
K&N Throttle Control Module: Faster Response from Pedal to ...
The K&N Throttle Control Module is designed to improve throttle response and acceleration, and improves pedal sensitivity without modifying factory ECU settings ...
Read more >
Electronic Throttle Control Module - O'Reilly Auto Parts
Shop for the best Electronic Throttle Control Module for your vehicle, and you can place your order online and pick up for free...
Read more >
Introducing the K&N Throttle Control Module - YouTube
If your car is suffering from a lethargic throttle response, consider installing the K&N Throttle Control Module. This performance control ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found