From f8da4c99b173e060a2b4c16a2e18d0a1641a244d Mon Sep 17 00:00:00 2001 From: Imran Malic Settuba <46971368+i-walker@users.noreply.github.com> Date: Wed, 20 Apr 2022 13:50:11 +0200 Subject: [PATCH 1/3] define Dsl as public --- .../src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt b/arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt index 777d254bdeb..e7c4ab5f616 100644 --- a/arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt +++ b/arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt @@ -501,7 +501,7 @@ public sealed class Resource { ) public class Defer(public val resource: suspend () -> Resource) : Resource() - internal data class Dsl(public val dsl: suspend ResourceScope.() -> A) : Resource() + public data class Dsl(public val dsl: suspend ResourceScope.() -> A) : Resource() public companion object { From c78a6da68c6f5bf08b86645884d236f3cf0ff547 Mon Sep 17 00:00:00 2001 From: i-walker Date: Wed, 20 Apr 2022 11:55:00 +0000 Subject: [PATCH 2/3] Update API files --- .../arrow-fx-coroutines/api/arrow-fx-coroutines.api | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arrow-libs/fx/arrow-fx-coroutines/api/arrow-fx-coroutines.api b/arrow-libs/fx/arrow-fx-coroutines/api/arrow-fx-coroutines.api index 2d5969e3fca..16a583788cd 100644 --- a/arrow-libs/fx/arrow-fx-coroutines/api/arrow-fx-coroutines.api +++ b/arrow-libs/fx/arrow-fx-coroutines/api/arrow-fx-coroutines.api @@ -346,6 +346,17 @@ public final class arrow/fx/coroutines/Resource$Defer : arrow/fx/coroutines/Reso public final fun getResource ()Lkotlin/jvm/functions/Function1; } +public final class arrow/fx/coroutines/Resource$Dsl : arrow/fx/coroutines/Resource { + public fun (Lkotlin/jvm/functions/Function2;)V + public final fun component1 ()Lkotlin/jvm/functions/Function2; + public final fun copy (Lkotlin/jvm/functions/Function2;)Larrow/fx/coroutines/Resource$Dsl; + public static synthetic fun copy$default (Larrow/fx/coroutines/Resource$Dsl;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Larrow/fx/coroutines/Resource$Dsl; + public fun equals (Ljava/lang/Object;)Z + public final fun getDsl ()Lkotlin/jvm/functions/Function2; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + public final class arrow/fx/coroutines/ResourceExtensionsKt { public static final fun fromAutoCloseable (Larrow/fx/coroutines/Resource$Companion;Lkotlin/jvm/functions/Function1;)Larrow/fx/coroutines/Resource; public static final fun fromCloseable (Larrow/fx/coroutines/Resource$Companion;Lkotlin/jvm/functions/Function1;)Larrow/fx/coroutines/Resource; From fd20efee1b8d42dd5413479f90fc6f48c54abefe Mon Sep 17 00:00:00 2001 From: i-walker <46971368+i-walker@users.noreply.github.com> Date: Wed, 20 Apr 2022 13:57:16 +0200 Subject: [PATCH 3/3] rerun