This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import akka.actor.ActorSystem | |
| import akka.http.scaladsl.Http | |
| import akka.stream.{ActorMaterializer, Materializer} | |
| import korolev._ | |
| import korolev.akkahttp._ | |
| import korolev.execution._ | |
| import korolev.server._ | |
| import korolev.state.javaSerialization._ | |
| import scala.concurrent.Future |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.concurrent.Executors | |
| import scala.concurrent.ExecutionContext | |
| import cats.effect._ | |
| object Foo extends IOApp { | |
| val cs = implicitly[ContextShift[IO]] | |
| val ex = Executors.newCachedThreadPool() | |
| val ec = ExecutionContext.fromExecutor(ex) | |
| def run(args: List[String]) = |
NewerOlder