Package-level declarations
Types
Link copied to clipboard
A CloseableGraph alternative whose generated close can suspend, so its @OnGraphClose callbacks can too. Requires Metro's suspend provider support.
Functions
Link copied to clipboard
Returns a memoizing SuspendProvider instance of this provider.
Link copied to clipboard
Returns a memoizing SuspendLazy instance of this provider.
Link copied to clipboard
expect fun <T> suspendLazy(mode: LazyThreadSafetyMode = LazyThreadSafetyMode.SYNCHRONIZED, initializer: suspend () -> T): SuspendLazy<T>
Creates a SuspendLazy that runs initializer on first access.
actual fun <T> suspendLazy(mode: LazyThreadSafetyMode, initializer: suspend () -> T): SuspendLazy<T>
Creates a SuspendLazy that runs initializer on first access.
actual fun <T> suspendLazy(mode: LazyThreadSafetyMode, initializer: suspend () -> T): SuspendLazy<T>
Creates a SuspendLazy that runs initializer on first access.
actual fun <T> suspendLazy(mode: LazyThreadSafetyMode, initializer: suspend () -> T): SuspendLazy<T>
Creates a SuspendLazy that runs initializer on first access.