Skip to content

Commit

Permalink
define Dsl as public (#2706)
Browse files Browse the repository at this point in the history
* define Dsl as public

* Update API files

* rerun

Co-authored-by: i-walker <i-walker@users.noreply.github.com>
  • Loading branch information
i-walker and i-walker committed Apr 20, 2022
1 parent 01ff97d commit ed24185
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions arrow-libs/fx/arrow-fx-coroutines/api/arrow-fx-coroutines.api
Expand Up @@ -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 <init> (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;
Expand Down
Expand Up @@ -501,7 +501,7 @@ public sealed class Resource<out A> {
)
public class Defer<A>(public val resource: suspend () -> Resource<A>) : Resource<A>()

internal data class Dsl<A>(public val dsl: suspend ResourceScope.() -> A) : Resource<A>()
public data class Dsl<A>(public val dsl: suspend ResourceScope.() -> A) : Resource<A>()

public companion object {

Expand Down

0 comments on commit ed24185

Please sign in to comment.