We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d0568b commit 46717b2Copy full SHA for 46717b2
1 file changed
hooks/src/main/kotlin/xyz/junerver/compose/hooks/useThrottle.kt
@@ -40,7 +40,7 @@ internal class Throttle(
40
41
private var calledCount = 0
42
private val trailingJobs: MutableList<Job> = arrayListOf()
43
- private var latestInvokedTime = Instant.fromEpochMilliseconds(0L)
+ private var latestInvokedTime = Instant.DISTANT_PAST
44
45
private fun clearTrailing() {
46
if (trailingJobs.isNotEmpty()) {
0 commit comments