migrate object to data object (#1135)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user