Yokan / rebuild
Course 1 8624561

ProfileStorageLease.desktop.kt

composeApp/src/desktopMain/kotlin/eu/friedcutlet/yokan/app/profiles/ProfileStorageLease.desktop.kt

implementation11 lines
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

Search chapters, reference and source filenames.