Skip to content

Commit

Permalink
Rxn.DefaultMcas
Browse files Browse the repository at this point in the history
  • Loading branch information
durban committed Jul 1, 2023
1 parent 3a0a926 commit d493b3d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ object AsyncReactive {
inst

def asyncReactiveForAsync[F[_]](implicit F: Async[F]): AsyncReactive[F] =
new AsyncReactiveImpl[F](Mcas.DefaultMcas)(F)
new AsyncReactiveImpl[F](Rxn.DefaultMcas)(F)

private[async] class AsyncReactiveImpl[F[_]](mi: Mcas)(implicit F: Async[F])
extends Reactive.SyncReactive[F](mi)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object Reactive {
inst

def reactiveForSync[F[_]](implicit F: Sync[F]): Reactive[F] =
new SyncReactive[F](Mcas.DefaultMcas)(F)
new SyncReactive[F](Rxn.DefaultMcas)(F)

private[choam] class SyncReactive[F[_]](
final override val mcasImpl: Mcas
Expand Down
4 changes: 4 additions & 0 deletions core/shared/src/main/scala/dev/tauri/choam/core/Rxn.scala
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ object Rxn extends RxnInstances0 {
private final val interruptCheckPeriod =
16384

/** This is just exporting `DefaultMcas`, because that's in an internal package */
final def DefaultMcas: Mcas =
Mcas.DefaultMcas

// API:

def pure[A](a: A): Axn[A] =
Expand Down

0 comments on commit d493b3d

Please sign in to comment.