migrate object to data object (#1135)
This commit is contained in:
parent
4218a836d5
commit
7083abcf09
98 changed files with 314 additions and 357 deletions
|
|
@ -25,7 +25,7 @@ class FirstThrottler(private val minimumInterval: Long = 800) {
|
|||
private var lastDate = 0L
|
||||
|
||||
sealed class CanHandleResult {
|
||||
object Yes : CanHandleResult()
|
||||
data object Yes : CanHandleResult()
|
||||
data class No(val shouldWaitMillis: Long) : CanHandleResult()
|
||||
|
||||
fun waitMillis(): Long {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue