Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (17 sloc) 539 Bytes
import scala.concurrent.ExecutionContext.Implicits._
import scala.concurrent.Future
trait Example_00_Futures extends TheFutures with Helpers {
def main(args: Array[String]) = {
print("StartingMainProcessing Action")
findFullProfile("JaneNone").map {
fp => {
print("EndingFullProfileProcessing Action")
println(s"FullProfile: $fp")
}
}
print("EndingMainProcessing Action")
// Just waiting all work to be done
waitFor(5)
}
def findFullProfile(user: String): Future[String]
}