Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
kyri-petrou committed Jul 10, 2024
1 parent 06539bc commit 0f655df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import java.util.concurrent.atomic.AtomicReference
/**
* Lightweight variant of [[zio.Scope]], optimized for usage with ZQuery
*/
private[query] sealed abstract class QueryScope {
sealed trait QueryScope {
def addFinalizerExit(f: Exit[Any, Any] => UIO[Any])(implicit trace: Trace): UIO[Unit]
def closeAndExitWith[E, A](exit: Exit[E, A])(implicit trace: Trace): IO[E, A]
}
Expand All @@ -21,7 +21,7 @@ private[query] object QueryScope {
def closeAndExitWith[E, A](exit: Exit[E, A])(implicit trace: Trace): IO[E, A] = exit
}

final class Default extends QueryScope {
final private class Default extends QueryScope {
private val ref = new AtomicReference(List.empty[Exit[Any, Any] => UIO[Any]])

def addFinalizerExit(f: Exit[Any, Any] => UIO[Any])(implicit trace: Trace): UIO[Unit] =
Expand Down

0 comments on commit 0f655df

Please sign in to comment.