Maps some value to new future option.
Maps some value to new future option. {{ Future.successful(Some(2)) mapOpt (_ + 1) == Future { 3 } }}
Return type
Function which maps some value to new value
The execution context
New future option with mapped some value
If this future value is none, then use the other future value.
If this future value is none, then use the other future value.
The new return type
Function used to get another future option, if the original was a future none
The execution context
A future option based on the original or other future calculation