ProfileStorageLease.desktop.kt
composeApp/src/desktopMain/kotlin/eu/friedcutlet/yokan/app/profiles/ProfileStorageLease.desktop.kt
1package eu.friedcutlet.yokan.app.profiles23import eu.friedcutlet.yokan.services.files.desktopDataRoot4import 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(desktopDataRoot, id)11 }12