Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import scala.concurrent.ExecutionContext.Implicits.global
- def getSystemStatusInfo(id: String): Future[SystemStatusInfo] = {
- for {
- system <- fetchSystem(id)
- systemStatus <- fetchSystemStatus(id)
- } yield SystemStatusInfo(system, systemStatus)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement