Skip to content

Throttling data capturing #28

Open
@dmi3coder

Description

@dmi3coder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions