suspendLazy

expect fun <T> suspendLazy(initializer: SuspendingInitializer<T>): SuspendLazy<T>

Creates the default SuspendLazy implementation, behavior might be different based on platform.

See also


Creates a SuspendLazy implementation corresponding to mode, please refer to the platform documentation for how mode is being used.

See also

actual fun <T> suspendLazy(initializer: SuspendingInitializer<T>): SuspendLazy<T>

Creates a SuspendLazy implementation using LazyThreadSafetyMode.NONE as JS doesn't provide thread safety.

See also

actual fun <T> suspendLazy(initializer: SuspendingInitializer<T>): SuspendLazy<T>

Creates a SuspendLazy implementation using LazyThreadSafetyMode.SYNCHRONIZED.

See also


Creates a SuspendLazy implementation using mode.

See also

actual fun <T> suspendLazy(initializer: SuspendingInitializer<T>): SuspendLazy<T>

Creates a SuspendLazy implementation using LazyThreadSafetyMode.SYNCHRONIZED as JS doesn't provide thread safety.

Memory info: This requires using the new memory model

See also


Creates a SuspendLazy implementation using mode as JS doesn't provide thread safety.

Memory info: This requires using the new memory model unless you use LazyThreadSafetyMode.NONE

See also