Future

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

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.

Future — Structure map

Clickable & Draggable!

Future — Related pages: