Class Result<T>
java.lang.Object
io.temporal.internal.concurrent.structured.Result<T>
- Type Parameters:
T- the success value type
A settled outcome of a task:
SUCCESS, FAILURE, or CANCELLED.
This is the element type returned by TaskScope.awaitAllSettled().
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
success
-
failure
-
cancelled
-
status
-
isSuccess
public boolean isSuccess() -
isFailure
public boolean isFailure() -
isCancelled
public boolean isCancelled() -
get
- Returns:
- the value on success; otherwise throws
IllegalStateException(cause attached).
-
orElse
-
cause
- Returns:
- the throwable for FAILURE/CANCELLED, or
nullfor SUCCESS.
-
map
-
fold
-
toString
-