mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-22 08:49:25 +00:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
2020e48659 | |||
9566d6f81f | |||
27a3e8706a | |||
e601efcfc0 | |||
2bfad9f885 |
@@ -1,5 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
## 0.5.4
|
||||
|
||||
* `Versions`:
|
||||
* `Klock`: `2.1.0` -> `2.1.2`
|
||||
|
||||
## 0.5.3
|
||||
|
||||
* `Versions`:
|
||||
|
@@ -38,7 +38,7 @@ inline fun CoroutineScope.createSafeActionsActor(
|
||||
suspend fun <T> Channel<suspend () -> Unit>.doWithSuspending(
|
||||
action: ActorAction<T>
|
||||
) = suspendCoroutine<T> {
|
||||
offer {
|
||||
trySend {
|
||||
safely({ e -> it.resumeWithException(e) }) {
|
||||
it.resume(action())
|
||||
}
|
||||
|
@@ -14,7 +14,7 @@ kotlin_exposed_version=0.31.1
|
||||
|
||||
ktor_version=1.5.4
|
||||
|
||||
klockVersion=2.1.0
|
||||
klockVersion=2.1.2
|
||||
|
||||
github_release_plugin_version=2.2.12
|
||||
|
||||
@@ -45,5 +45,5 @@ dokka_version=1.4.32
|
||||
# Project data
|
||||
|
||||
group=dev.inmo
|
||||
version=0.5.3
|
||||
android_code_version=44
|
||||
version=0.5.4
|
||||
android_code_version=45
|
||||
|
@@ -10,7 +10,7 @@ import kotlinx.coroutines.flow.collect
|
||||
import kotlinx.serialization.SerializationStrategy
|
||||
|
||||
private suspend fun DefaultWebSocketSession.checkReceivedAndCloseIfExists() {
|
||||
if (incoming.poll() != null) {
|
||||
if (incoming.tryReceive() != null) {
|
||||
close()
|
||||
throw CorrectCloseException
|
||||
}
|
||||
|
Reference in New Issue
Block a user