We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.0.0.0
localhost
timeout
"-language:higherKinds", "-language:implicitConversions", "-language:postfixOps",
Boot.scala
println(s"REST interface bound to $address")
system.log.debug
shutdown
terminate
def runBot(): Unit = { val future: Future[Any] = placesActor ? GetPlaces() val eventualCities: Future[List[City]] = future .mapTo[List[City]] eventualCities .map(list => { val fullMap: Map[String, City] = list.map(c => c.id -> c).toMap system.actorOf(Props(classOf[PoehaliBot], Cities(fullMap)), "bot") }) }
i think this nice place for Await :) (but i might be wrong)
Await
trip
GetRoutees
resolveOne(100 second)
Logic
CalcService
The text was updated successfully, but these errors were encountered:
No branches or pull requests
0.0.0.0
instead oflocalhost
seetimeout
, i think the most common way, create object with set of default timeouts (like 10 seconds, 30, 1 minute and so on)Boot.scala
, it's unnecessarilyprintln(s"REST interface bound to $address")
=>system.log.debug
shutdown
~>terminate
i think this nice place for
Await
:) (but i might be wrong)trip
withGetRoutees
messageresolveOne(100 second)
remove plzLogic
orCalcService
in different object. (all calculation in separate object with custom execution context (fork-join))The text was updated successfully, but these errors were encountered: