Companion

object Companion

Functions

Link copied to clipboard
fun none(): Expiry

The document will never expire.

Link copied to clipboard
fun of(instant: Instant): Expiry

The document will expire at the given instant. If the instant is in the recent past, the document will expire immediately.

fun of(duration: Duration): Expiry

The document will expire after the given duration.