Cooldown

data class Cooldown(val start: Instant, val duration: Duration) : Delayed

A cooldown wrapping a Duration and a Instant to determine when the cooldown is over.

Constructors

Link copied to clipboard
fun Cooldown(start: Instant, duration: Duration)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun compareTo(other: Delayed): Int
Link copied to clipboard
Link copied to clipboard
open override fun getDelay(unit: TimeUnit): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

The duration of the cooldown.

Link copied to clipboard
val start: Instant

The start of the cooldown.