Future

Is used to create a temporary pocket of concurrency that you use for one-shot needs.

Represents a value which may or may not currently be available, but will be available at some point, or an exception if that value could not be made available.

Demonstration code

def aLongRunningTask(): Future[Int] = ???
val x = aLongRunningTask

Future — Structure map

Clickable & Draggable!

Future — Related pages: