-
public final class LangKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> Lazy<T>usfLazy(Function0<T> initializer)Unsafe lazy, usually be used in single thread final static UnitsleepSeconds(Long seconds)final static UnitsleepMillis(Long millis)final static Unitsleep(Duration duration)final static BooleanalwaysFalse()Always false and have no static check warning final static BooleanalwaysTrue()Always true and have no static check warning -
-
Method Detail
-
usfLazy
final static <T extends Any> Lazy<T> usfLazy(Function0<T> initializer)
Unsafe lazy, usually be used in single thread
-
sleepSeconds
final static Unit sleepSeconds(Long seconds)
-
sleepMillis
final static Unit sleepMillis(Long millis)
-
alwaysFalse
final static Boolean alwaysFalse()
Always false and have no static check warning
-
alwaysTrue
final static Boolean alwaysTrue()
Always true and have no static check warning
-
-
-
-