Skip to content

Commit

Permalink
🩹: Instant.DISTANT_PAST
Browse files Browse the repository at this point in the history
  • Loading branch information
junerver committed Aug 6, 2024
1 parent 7d0568b commit 46717b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internal class Throttle(

private var calledCount = 0
private val trailingJobs: MutableList<Job> = arrayListOf()
private var latestInvokedTime = Instant.fromEpochMilliseconds(0L)
private var latestInvokedTime = Instant.DISTANT_PAST

private fun clearTrailing() {
if (trailingJobs.isNotEmpty()) {
Expand Down

0 comments on commit 46717b2

Please sign in to comment.