orNow

inline fun Instant?.orNow(): Instant(source)

如果 this 为 null,返回 Clock.System.now,否则返回 this 本身。


@JvmName(name = "orNowNotNull")
inline fun Instant.orNow(): Nothing(source)

Deprecated (with error)

orNow() on a non-null Instant is redundant

Replace with

this

用于在编译期拦截对于非空 Instant 的冗余 orNow 调用。