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
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 |
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.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 { |
OlderNewer