diff --git a/src/main/scala/nova/monadic_sfx/Main.scala b/src/main/scala/nova/monadic_sfx/Main.scala index 3cfd307..15282bc 100644 --- a/src/main/scala/nova/monadic_sfx/Main.scala +++ b/src/main/scala/nova/monadic_sfx/Main.scala @@ -3,6 +3,7 @@ package nova.monadic_sfx import _root_.monix.bio.BIOApp import _root_.monix.bio.Task import _root_.monix.bio.UIO +import _root_.monix.execution.Scheduler import cats.effect.ExitCode import cats.effect.Resource import com.softwaremill.macwire._ @@ -11,11 +12,15 @@ import nova.monadic_sfx.executors._ // import nova.monadic_sfx.util.IOUtils._ // import sttp.client.httpclient.monix.HttpClientMonixBackend object Main extends MainModule with BIOApp { + lazy val schedulers = new Schedulers() + + override def scheduler: Scheduler = schedulers.async def appResource(startTime: Long) = for { implicit0(logger: Logger[Task]) <- makeLogger - schedulers = new Schedulers() + + // backend and actorsystem are for future use // backend <- Resource.make( // toIO(HttpClientMonixBackend()(schedulers.async)) // )(c => toIO(c.close()))