-
- All Implemented Interfaces:
public final class ConcurrencyUtilKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> Lazy<T>
javalinLazy(LazyThreadSafetyMode threadSafetyMode, Function0<T> initializer)
Loom-friendly kotlin. -
-
Method Detail
-
javalinLazy
final static <T extends Any> Lazy<T> javalinLazy(LazyThreadSafetyMode threadSafetyMode, Function0<T> initializer)
Loom-friendly kotlin.lazy implementation
By default, kotlin.lazy uses SynchronizedLazyImpl which is not Loom-friendly. We instead use LazyThreadSafetyMode = NONE by default, and use ReentrantLazy when LazyThreadSafetyMode.SYNCHRONIZED is requested.
-
-
-
-