diff --git a/coroutines/api/kotlin-common-coroutines.api b/coroutines/api/kotlin-common-coroutines.api index 3b48826..e0b9a1d 100644 --- a/coroutines/api/kotlin-common-coroutines.api +++ b/coroutines/api/kotlin-common-coroutines.api @@ -6,6 +6,14 @@ public final class com/huanshankeji/kotlinx/coroutine/AwaitKt { public static final fun joinAny ([Lkotlinx/coroutines/Job;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } +public abstract interface class com/huanshankeji/kotlinx/coroutine/CoroutineAutoCloseable { + public abstract fun close (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; +} + +public final class com/huanshankeji/kotlinx/coroutine/CoroutineAutoCloseableKt { + public static final fun use (Lcom/huanshankeji/kotlinx/coroutine/CoroutineAutoCloseable;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; +} + public abstract interface class com/huanshankeji/kotlinx/coroutine/WithCoroutineScope { public abstract fun getCoroutineScope ()Lkotlinx/coroutines/CoroutineScope; } diff --git a/coroutines/api/kotlin-common-coroutines.klib.api b/coroutines/api/kotlin-common-coroutines.klib.api index e4b9b2d..9f2be8a 100644 --- a/coroutines/api/kotlin-common-coroutines.klib.api +++ b/coroutines/api/kotlin-common-coroutines.klib.api @@ -6,6 +6,10 @@ // - Show declarations: true // Library unique name: +abstract fun interface com.huanshankeji.kotlinx.coroutine/CoroutineAutoCloseable { // com.huanshankeji.kotlinx.coroutine/CoroutineAutoCloseable|null[0] + abstract suspend fun close() // com.huanshankeji.kotlinx.coroutine/CoroutineAutoCloseable.close|close(){}[0] +} + abstract interface com.huanshankeji.kotlinx.coroutine/WithCoroutineScope { // com.huanshankeji.kotlinx.coroutine/WithCoroutineScope|null[0] abstract val coroutineScope // com.huanshankeji.kotlinx.coroutine/WithCoroutineScope.coroutineScope|{}coroutineScope[0] abstract fun (): kotlinx.coroutines/CoroutineScope // com.huanshankeji.kotlinx.coroutine/WithCoroutineScope.coroutineScope.|(){}[0] @@ -16,3 +20,4 @@ final suspend fun <#A: kotlin/Any?> (kotlin.collections/Collection (kotlin.collections/Collection>).com.huanshankeji.kotlinx.coroutine/awaitAnyAndCancelOthers(): #A // com.huanshankeji.kotlinx.coroutine/awaitAnyAndCancelOthers|awaitAnyAndCancelOthers@kotlin.collections.Collection>(){0§}[0] final suspend fun <#A: kotlin/Any?> com.huanshankeji.kotlinx.coroutine/awaitAny(kotlin/Array>...): #A // com.huanshankeji.kotlinx.coroutine/awaitAny|awaitAny(kotlin.Array>...){0§}[0] final suspend fun com.huanshankeji.kotlinx.coroutine/joinAny(kotlin/Array...) // com.huanshankeji.kotlinx.coroutine/joinAny|joinAny(kotlin.Array...){}[0] +final suspend inline fun <#A: com.huanshankeji.kotlinx.coroutine/CoroutineAutoCloseable?, #B: kotlin/Any?> (#A).com.huanshankeji.kotlinx.coroutine/use(kotlin/Function1<#A, #B>): #B // com.huanshankeji.kotlinx.coroutine/use|use@0:0(kotlin.Function1<0:0,0:1>){0§;1§}[0]