Package io.vavr.concurrent
Interface Task.Complete<T>
- Type Parameters:
T
- result type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Completes a task.
-
Method Summary
-
Method Details
-
with
A function that takes aTry
(success or failure) and returns the state of completion.- Parameters:
value
- the computation result- Returns:
true
, if the task could be completed, otherwisefalse
. Successive calls will result infalse
.
-