From 029cbbd5ac26281cc37ea937a222cc2e929ca8ad Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Sun, 20 Dec 2020 15:19:14 +0530 Subject: [PATCH] Added note about future use of backend and actorsys --- src/main/scala/nova/monadic_sfx/Main.scala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()))