mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-11-02 01:52:57 +00:00
fixes of deprecates
This commit is contained in:
1 parent
9566d6f81f
commit
2020e48659
2 files changed
+2
-2
No files matched your search
@@ -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())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user