Skip to content

Commit 46717b2

Browse files
committed
🩹: Instant.DISTANT_PAST
1 parent 7d0568b commit 46717b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/src/main/kotlin/xyz/junerver/compose/hooks/useThrottle.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ internal class Throttle(
4040

4141
private var calledCount = 0
4242
private val trailingJobs: MutableList<Job> = arrayListOf()
43-
private var latestInvokedTime = Instant.fromEpochMilliseconds(0L)
43+
private var latestInvokedTime = Instant.DISTANT_PAST
4444

4545
private fun clearTrailing() {
4646
if (trailingJobs.isNotEmpty()) {

0 commit comments

Comments
 (0)