Created
September 20, 2018 12:14
-
-
Save kakajika/bb996b20ecb9aca0b3d975849a295064 to your computer and use it in GitHub Desktop.
Non-atomic access extension for lazy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun <T> lazyFast(operation: () -> T): Lazy<T> = lazy(LazyThreadSafetyMode.NONE) { | |
operation() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment