Eric Ou
07/08/2022, 1:40 PMlazy()
, as in lazyNone()
, lazyPublication()
, and lazySyncronized()
, instead of lazy(LazyThreadSafetyMode)
Mikhail
07/08/2022, 1:46 PMlazySynchronized
is harder to type / spell in the brain for non-english speakers. Even you made a mistake 🧌
lazyThreadSafe
would be better but I don't really see any point in it, lazy
is synchronized by default:
Creates a new instance of the Lazy that uses the specified initialization function initializer and the default thread-safety mode LazyThreadSafetyMode.SYNCHRONIZED.Also, what is
lazyPublication
?Eric Ou
07/08/2022, 1:47 PMMikhail
07/08/2022, 1:48 PMEric Ou
07/08/2022, 1:48 PMEric Ou
07/08/2022, 1:49 PMlazy
method, just a bit of a QOL thingmcpiroman
07/08/2022, 3:58 PMlazy(PUBLICATION)
. It is even mentioned in the examples.