add full cache repos

This commit is contained in:
2022-06-29 23:53:49 +06:00
parent 540d5cce7c
commit 0d0c16e16d
10 changed files with 378 additions and 55 deletions

View File

@@ -41,6 +41,13 @@ data class Optional<T> internal constructor(
inline val <T> T.optional
get() = Optional.presented(this)
inline val <T : Any> T?.optionalOrAbsentIfNull
get() = if (this == null) {
Optional.absent<T>()
} else {
Optional.presented(this)
}
/**
* Will call [block] when data presented ([Optional.dataPresented] == true)
*/