Is it possible to do so that Invoke would not lead to an invocation of an action if it did not pass, say, 100ms?

Expected behavior:

  • Invok every 1ms for 101ms
  • Should work 1 and 101

Expected behavior 2:

  • invok every 1ms for 50ms
  • should work 1st and 50th invok. 50th at 101st second.
  • one
    it's called throttle - Grundy

1 answer 1

Thank you grundy

  1. in sharpe there is no native implementation of throttle
  2. But there is in Reactive libraries, for example Rx
  3. But you can also implement your own implementation. For example: https://stackoverflow.com/a/37795140/4423545