We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 576ecf7 commit fb7100bCopy full SHA for fb7100b
interfaces/src/main/kotlin/com/noxcrew/interfaces/properties/LazyProperty.kt
@@ -72,7 +72,7 @@ public abstract class LazyProperty<T : Any>(
72
73
// If we have recently refreshed, re-use the value!
74
if (lastRefresh.plus(debounce.toJavaDuration()) > Instant.now()) {
75
- return value!!
+ return value ?: load(reload)
76
}
77
lastRefresh = Instant.now()
78
@@ -95,7 +95,7 @@ public abstract class LazyProperty<T : Any>(
95
updateJob = null
96
97
updateJob?.await()
98
99
100
101
/** Returns the value of this property. */
0 commit comments