public interface TaskUtil
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Optional<T> |
firstNonNull(FuncE0<T,?>... tasks)
Return the first non-null result of the given tasks or empty if all of them return null.
|
static void |
firstSuccess(ActionE0<?>... tasks)
Return the first result of these tasks
IGNORE EXCEPTIONS. |
@SafeVarargs static void firstSuccess(ActionE0<?>... tasks) throws IllegalStateException
tasks - IllegalStateException - If all tasks failed.@SafeVarargs static <T> Optional<T> firstNonNull(FuncE0<T,?>... tasks)
tasks - Copyright © 2018. All rights reserved.