Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import scala.concurrent.ExecutionContext.Implicits.global
  2.  
  3. def getSystemStatusInfo(id: String): Future[SystemStatusInfo] = {
  4. for {
  5. system <- fetchSystem(id)
  6. systemStatus <- fetchSystemStatus(id)
  7. } yield SystemStatusInfo(system, systemStatus)
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement