Jonathan Lennox
12/19/2023, 8:42 PMimport java.time.Duration
private val durationMax: Duration = Duration.ofSeconds(Long.MAX_VALUE)
val Duration.Companion.MAX: Duration
get() = durationMax
but there's no java.time.Duration.Companion
of course. Is there a decent idiomatic equivalent way to do this?Jonathan Lennox
12/19/2023, 8:44 PMval durationMax
public but it doesn't feel as idiomatic, especially since ktlint won't let me capitalize it.Adam S
12/19/2023, 8:49 PMCLOVIS
12/20/2023, 3:03 PM