Open
Description
In our android example, we have edge cases. When you call .stopCapturing()
several times with a new thread it may get unpredictable results and will compute endlessly. We need some data throttling, primarily for .stopCapturing()
https://github.com/dmi3coder/behaiv-android/blob/master/example_kotlin/src/main/java/de/dmi3y/behaiv/example/tasks/TasksFragment.kt#L66
So, we need to add additional param to Behaiv.Builder
called .setThrottle(long amount)
And use this param to wait for a specific amount of data to arrive before doing any computations.