All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.datastar.SettleDuration.kt Maven / Gradle / Ivy

There is a newer version: 5.41.0.0
Show newest version
package org.http4k.datastar

import dev.forkhandles.values.DurationValue
import dev.forkhandles.values.DurationValueFactory
import java.time.Duration

/**
 * Settles the element after 1000ms, useful for transitions
 */
class SettleDuration private constructor(value: Duration) : DurationValue(value) {
    companion object : DurationValueFactory({ SettleDuration(it) }) {
        val DEFAULT = SettleDuration.of(Duration.ofMillis(300))
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy