com.phasmidsoftware.lascala.cache.FutureWrapper
A concrete Wrapper which wraps with a Future
Value parameters
- atMost
-
a (implicit) duration used by the get method
- ec
-
an (implicit) execution context
Attributes
- Graph
-
- Supertypes
-
class Object
trait Matchable
class Any
Members list
Return an M[V], given an M[V] and a V=>M[V] function
Return an M[V], given an M[V] and a V=>M[V] function
CONSIDER defining this as flatMap[V,W] etc.
Type parameters
- V
-
the value type
Value parameters
- m
-
the M[V] to be mapped
Attributes
- Returns
-
an M[V]
Unwrap a V value from inside the given m
Unwrap a V value from inside the given m
Type parameters
- V
-
the value type
Value parameters
- m
-
an M[V]
Attributes
- Returns
-
the unwrapped V value
Type parameters
- V
-
the value type
Value parameters
- v
-
the value
Attributes
- Returns
-
an M[V]
Just for convenience, here is map defined in terms of flatMap and unit
Just for convenience, here is map defined in terms of flatMap and unit
Type parameters
- V
-
the value type
Value parameters
- f
-
the mapping function, which is a V=>V
- m
-
the M[V] to be mapped
Attributes
- Returns
-
an M[V]
- Inherited from:
-
Wrapper