- changed status to resolved
Add laziness to Try
Issue #64
resolved
Current, Try
has no laziness built-in. It's immediately evaluated to either Success
or Failure
. Checked.of
will run the Supplier
immediately to evaluate the result to a Try
.
This makes it a bit unwieldy to use Try.sequence()
as one has to evaluate all Try
elements in the Iterable
before sequencing, rather than stopping evaluation as soon as the first failure is encountered.
Comments (1)
-
reporter - Log in to comment