TryUsing
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TryUsing.type
Members list
Value members
Concrete methods
This method is to Using.apply as flatMap is to Map.
This method is to Using.apply as flatMap is to Map.
Type parameters
- A
-
the underlying type of the result.
- R
-
the resource type.
Value parameters
- f
-
a function of
R => Try[A]. - resource
-
a resource which is used by f and will be managed via
Using.apply
Attributes
- Returns
-
a Try[A]
This method is similar to apply(r) but it takes a Try[R] as its parameter. The definition of f is the same as in the other apply, however.
This method is similar to apply(r) but it takes a Try[R] as its parameter. The definition of f is the same as in the other apply, however.
CONSIDER making the ry parameter non-strict (but then we would have to rename this method something else).
Type parameters
- A
-
the underlying type of the result.
- R
-
the resource type.
Value parameters
- f
-
a function of R => Try[A].
- ry
-
a Try[R] which is passed into f and will be managed via Using.apply
Attributes
- Returns
-
a Try[A]