mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2025-12-06 04:55:52 +00:00
update dependencies
This commit is contained in:
10
src/androidMain/kotlin/ResultChecker.kt
Normal file
10
src/androidMain/kotlin/ResultChecker.kt
Normal file
@@ -0,0 +1,10 @@
|
||||
package dev.inmo.krontab
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import androidx.work.ListenableWorker
|
||||
|
||||
@SuppressLint("RestrictedApi")
|
||||
internal fun ListenableWorker.Result.isSuccess() = this is ListenableWorker.Result.Success
|
||||
|
||||
@SuppressLint("RestrictedApi")
|
||||
internal fun ListenableWorker.Result.isFailure() = this is ListenableWorker.Result.Failure
|
||||
Reference in New Issue
Block a user