Updated on 2026-08-14
This commit is contained in:
parent
7d9c12f1bc
commit
690318cd8d
10 changed files with 80 additions and 65 deletions
10
core/utils/src/main/java/com/tangem/utils/ProviderSuspend.kt
Normal file
10
core/utils/src/main/java/com/tangem/utils/ProviderSuspend.kt
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package com.tangem.utils
|
||||
|
||||
/**
|
||||
* Provider for suspend lazy initialization
|
||||
*
|
||||
* @param action initialization action
|
||||
*
|
||||
[REDACTED_AUTHOR]
|
||||
*/
|
||||
class ProviderSuspend<T>(action: suspend () -> T) : suspend () -> T by action
|
||||
Loading…
Add table
Add a link
Reference in a new issue