Skip to content

Commit

Permalink
Make scala 3 happy part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWSpence committed May 3, 2024
1 parent c1c26d5 commit a98f3db
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ trait STMLaws extends HasSTM {
(tvar.set(a) >> stm.abort[A](error)) <-> stm.abort[A](error)

def retryOrElse[A](txn: Txn[A]) =
(stm.retry[A] orElse txn) <-> txn
(stm.retry[A].orElse(txn)) <-> txn

def orElseRetry[A](txn: Txn[A]) =
(txn orElse stm.retry[A]) <-> txn
(txn.orElse(stm.retry[A])) <-> txn

def abortOrElse[A](error: Throwable, txn: Txn[A]) =
(stm.abort[A](error) orElse txn) <-> stm.abort[A](error)
(stm.abort[A](error).orElse(txn)) <-> stm.abort[A](error)

}

Expand Down

0 comments on commit a98f3db

Please sign in to comment.