Merge pull request #91 from InsanusMokrassar/0.5.24

0.5.24
This commit is contained in:
InsanusMokrassar 2021-09-04 14:59:13 +06:00 committed by GitHub
commit 06c8bde7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 5 deletions

View File

@ -1,5 +1,13 @@
# Changelog # Changelog
## 0.5.24
* `Versions`:
* `Coroutines`: `1.5.1` -> `1.5.2`
* `Klock`: `2.3.4` -> `2.4.1`
* `Coroutines`:
* New function `CoroutineScope` with safely exceptions handler as second parameter
## 0.5.23 ## 0.5.23
* `Versions`: * `Versions`:

View File

@ -147,3 +147,10 @@ suspend inline fun <T> runCatchingSafelyWithoutExceptions(
): Result<T?> = runCatching { ): Result<T?> = runCatching {
safelyWithoutExceptions(onException, block) safelyWithoutExceptions(onException, block)
} }
inline fun CoroutineScope(
context: CoroutineContext,
noinline defaultExceptionsHandler: ExceptionHandler<Unit>
) = CoroutineScope(
context + ContextSafelyExceptionHandler(defaultExceptionsHandler)
)

View File

@ -8,13 +8,13 @@ android.enableJetifier=true
org.gradle.jvmargs=-Xmx2g org.gradle.jvmargs=-Xmx2g
kotlin_version=1.5.30 kotlin_version=1.5.30
kotlin_coroutines_version=1.5.1 kotlin_coroutines_version=1.5.2
kotlin_serialisation_core_version=1.2.2 kotlin_serialisation_core_version=1.2.2
kotlin_exposed_version=0.34.1 kotlin_exposed_version=0.34.1
ktor_version=1.6.3 ktor_version=1.6.3
klockVersion=2.3.4 klockVersion=2.4.1
github_release_plugin_version=2.2.12 github_release_plugin_version=2.2.12
@ -45,5 +45,5 @@ dokka_version=1.5.0
# Project data # Project data
group=dev.inmo group=dev.inmo
version=0.5.23 version=0.5.24
android_code_version=64 android_code_version=65

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists