Skip to content

Instantly share code, notes, and snippets.

sealed trait Expression {
type Out
}
object Expression {
type Aux[T] = Expression { type Out = T}
}
case class Const[T](t: T) extends Expression {
override type Out = T
@limansky
limansky / Test.scala
Created March 11, 2021 08:59
Akka issue demo
import akka.actor.ActorSystem
import akka.stream.scaladsl.{ Flow, Framing, Source, Tcp }
import akka.util.ByteString
import scala.concurrent.{ ExecutionContext, Future }
object Test {
def logic(s: String)(implicit ec: ExecutionContext): Future[String] = {
Future {