This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kotlin.random.Random | |
/** | |
* This class holds state about when a task was last | |
* executed and helps determining if it should execute again or not | |
* depending on configuration and the current time | |
*/ | |
class TaskDecider( | |
private val taskIntervalMillis: Long, |
NewerOlder