Browse Source

Added note about future use of backend and

actorsys
master
Rohan Sircar 3 years ago
parent
commit
029cbbd5ac
  1. 7
      src/main/scala/nova/monadic_sfx/Main.scala

7
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()))

Loading…
Cancel
Save