Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Hevery (0.82 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/ValidityAwareCachedValue.kt

    import org.jetbrains.kotlin.analysis.api.lifetime.assertIsValidAndAccessible
    import kotlin.properties.ReadOnlyProperty
    import kotlin.reflect.KProperty
    
    /**
     * Lazy value that guaranties safe publication and checks validity on every access
     */
    internal class ValidityAwareCachedValue<T>(
        private val token: KtLifetimeToken,
        init: () -> T
    ) : ReadOnlyProperty<Any, T> {
        private val lazyValue = lazy(LazyThreadSafetyMode.PUBLICATION, init)
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Aug 15 09:04:58 GMT 2022
    - 1.1K bytes
    - Viewed (0)
Back to top