Yokan / rebuild
Course 1 8624561

ProfileStorageLease.android.kt

composeApp/src/androidMain/kotlin/eu/friedcutlet/yokan/app/profiles/ProfileStorageLease.android.kt

implementation11 lines
1package eu.friedcutlet.yokan.app.profiles23import eu.friedcutlet.yokan.AndroidAppContext4import kotlinx.coroutines.Dispatchers5import kotlinx.coroutines.withContext6import eu.friedcutlet.yokan.domain.ProfileId78internal actual suspend fun acquireProfileStorageLease(id: ProfileId): ProfileStorageLease =9    if (id == ProfileId.Default) ProfileStorageLease {} else withContext(Dispatchers.IO) {10        acquireFileProfileLease(checkNotNull(AndroidAppContext.appContext).filesDir, id)11    }12

Search chapters, reference and source filenames.