Skip to content

Commit

Permalink
Various small STM improvements (#3419)
Browse files Browse the repository at this point in the history
* Various small STM improvements

* Auto-update API files

---------

Co-authored-by: serras <[email protected]>
  • Loading branch information
serras and serras authored May 17, 2024
1 parent 51ace56 commit 514c2c3
Show file tree
Hide file tree
Showing 57 changed files with 420 additions and 251 deletions.
8 changes: 8 additions & 0 deletions arrow-libs/fx/arrow-fx-stm/api/arrow-fx-stm.api
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ public abstract interface class arrow/fx/stm/STM {
public abstract fun fold (Larrow/fx/stm/TArray;Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
public abstract fun get (Larrow/fx/stm/TArray;I)Ljava/lang/Object;
public abstract fun get (Larrow/fx/stm/TMap;Ljava/lang/Object;)Ljava/lang/Object;
public abstract fun getValue (Larrow/fx/stm/TVar;)Ljava/lang/Object;
public abstract fun getValue (Larrow/fx/stm/TVar;Ljava/lang/Void;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
public abstract fun insert (Larrow/fx/stm/TMap;Ljava/lang/Object;Ljava/lang/Object;)V
public abstract fun insert (Larrow/fx/stm/TSet;Ljava/lang/Object;)V
public abstract fun isEmpty (Larrow/fx/stm/TMVar;)Z
Expand Down Expand Up @@ -35,6 +37,8 @@ public abstract interface class arrow/fx/stm/STM {
public abstract fun retry ()Ljava/lang/Void;
public abstract fun set (Larrow/fx/stm/TArray;ILjava/lang/Object;)V
public abstract fun set (Larrow/fx/stm/TMap;Ljava/lang/Object;Ljava/lang/Object;)V
public abstract fun set (Larrow/fx/stm/TVar;Ljava/lang/Object;)V
public abstract fun setValue (Larrow/fx/stm/TVar;Ljava/lang/Void;Lkotlin/reflect/KProperty;Ljava/lang/Object;)V
public abstract fun size (Larrow/fx/stm/TQueue;)I
public abstract fun swap (Larrow/fx/stm/TMVar;Ljava/lang/Object;)Ljava/lang/Object;
public abstract fun swap (Larrow/fx/stm/TVar;Ljava/lang/Object;)Ljava/lang/Object;
Expand All @@ -61,6 +65,8 @@ public final class arrow/fx/stm/STM$DefaultImpls {
public static fun fold (Larrow/fx/stm/STM;Larrow/fx/stm/TArray;Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
public static fun get (Larrow/fx/stm/STM;Larrow/fx/stm/TArray;I)Ljava/lang/Object;
public static fun get (Larrow/fx/stm/STM;Larrow/fx/stm/TMap;Ljava/lang/Object;)Ljava/lang/Object;
public static fun getValue (Larrow/fx/stm/STM;Larrow/fx/stm/TVar;)Ljava/lang/Object;
public static fun getValue (Larrow/fx/stm/STM;Larrow/fx/stm/TVar;Ljava/lang/Void;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
public static fun insert (Larrow/fx/stm/STM;Larrow/fx/stm/TMap;Ljava/lang/Object;Ljava/lang/Object;)V
public static fun insert (Larrow/fx/stm/STM;Larrow/fx/stm/TSet;Ljava/lang/Object;)V
public static fun isEmpty (Larrow/fx/stm/STM;Larrow/fx/stm/TMVar;)Z
Expand All @@ -86,6 +92,8 @@ public final class arrow/fx/stm/STM$DefaultImpls {
public static fun removeAll (Larrow/fx/stm/STM;Larrow/fx/stm/TQueue;Lkotlin/jvm/functions/Function1;)V
public static fun set (Larrow/fx/stm/STM;Larrow/fx/stm/TArray;ILjava/lang/Object;)V
public static fun set (Larrow/fx/stm/STM;Larrow/fx/stm/TMap;Ljava/lang/Object;Ljava/lang/Object;)V
public static fun set (Larrow/fx/stm/STM;Larrow/fx/stm/TVar;Ljava/lang/Object;)V
public static fun setValue (Larrow/fx/stm/STM;Larrow/fx/stm/TVar;Ljava/lang/Void;Lkotlin/reflect/KProperty;Ljava/lang/Object;)V
public static fun size (Larrow/fx/stm/STM;Larrow/fx/stm/TQueue;)I
public static fun swap (Larrow/fx/stm/STM;Larrow/fx/stm/TMVar;Ljava/lang/Object;)Ljava/lang/Object;
public static fun swap (Larrow/fx/stm/STM;Larrow/fx/stm/TVar;Ljava/lang/Object;)Ljava/lang/Object;
Expand Down
5 changes: 5 additions & 0 deletions arrow-libs/fx/arrow-fx-stm/api/arrow-fx-stm.klib.api
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,14 @@ abstract interface arrow.fx.stm/STM { // arrow.fx.stm/STM|null[0]
open fun <#A1: kotlin/Any?> (arrow.fx.stm/TSet<#A1>).member(#A1): kotlin/Boolean // arrow.fx.stm/STM.member|[email protected]<0:0>(0:0){0§<kotlin.Any?>}[0]
open fun <#A1: kotlin/Any?> (arrow.fx.stm/TSet<#A1>).plusAssign(#A1) // arrow.fx.stm/STM.plusAssign|[email protected]<0:0>(0:0){0§<kotlin.Any?>}[0]
open fun <#A1: kotlin/Any?> (arrow.fx.stm/TSet<#A1>).remove(#A1) // arrow.fx.stm/STM.remove|[email protected]<0:0>(0:0){0§<kotlin.Any?>}[0]
open fun <#A1: kotlin/Any?> (arrow.fx.stm/TVar<#A1>).getValue(kotlin/Nothing?, kotlin.reflect/KProperty<*>): #A1 // arrow.fx.stm/STM.getValue|[email protected]<0:0>(kotlin.Nothing?;kotlin.reflect.KProperty<*>){0§<kotlin.Any?>}[0]
open fun <#A1: kotlin/Any?> (arrow.fx.stm/TVar<#A1>).modify(kotlin/Function1<#A1, #A1>) // arrow.fx.stm/STM.modify|[email protected]<0:0>(kotlin.Function1<0:0,0:0>){0§<kotlin.Any?>}[0]
open fun <#A1: kotlin/Any?> (arrow.fx.stm/TVar<#A1>).set(#A1) // arrow.fx.stm/STM.set|[email protected]<0:0>(0:0){0§<kotlin.Any?>}[0]
open fun <#A1: kotlin/Any?> (arrow.fx.stm/TVar<#A1>).setValue(kotlin/Nothing?, kotlin.reflect/KProperty<*>, #A1) // arrow.fx.stm/STM.setValue|[email protected]<0:0>(kotlin.Nothing?;kotlin.reflect.KProperty<*>;0:0){0§<kotlin.Any?>}[0]
open fun <#A1: kotlin/Any?> (arrow.fx.stm/TVar<#A1>).swap(#A1): #A1 // arrow.fx.stm/STM.swap|[email protected]<0:0>(0:0){0§<kotlin.Any?>}[0]
open fun <#A1: kotlin/Any?> newTVar(#A1): arrow.fx.stm/TVar<#A1> // arrow.fx.stm/STM.newTVar|newTVar(0:0){0§<kotlin.Any?>}[0]
open val value // arrow.fx.stm/STM.value|@arrow.fx.stm.TVar<0:0>{0§<kotlin.Any?>}value[0]
open fun <#A2: kotlin/Any?> (arrow.fx.stm/TVar<#A2>).<get-value>(): #A2 // arrow.fx.stm/STM.value.<get-value>|<get-value>@arrow.fx.stm.TVar<0:0>(){0§<kotlin.Any?>}[0]
}
final class <#A: kotlin/Any?, #B: kotlin/Any?> arrow.fx.stm/TMap { // arrow.fx.stm/TMap|null[0]
final fun copy(arrow.fx.stm.internal/Hamt<kotlin/Pair<#A, #B>> = ..., kotlin/Function1<#A, kotlin/Int> = ...): arrow.fx.stm/TMap<#A, #B> // arrow.fx.stm/TMap.copy|copy(arrow.fx.stm.internal.Hamt<kotlin.Pair<1:0,1:1>>;kotlin.Function1<1:0,kotlin.Int>){}[0]
Expand Down
Loading

0 comments on commit 514c2c3

Please sign in to comment.