T - public class Task<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
Task<T> |
await()
Ensures that the result is ready to be returned
|
Task<T> |
executeAsync() |
Task<T> |
executeSync() |
int |
getPriority() |
T |
getResult() |
Task<T> |
onSuccess(OnSuccess<T> onSuccess) |
Task<T> |
setPriority(int newPriority) |
public int getPriority()
@NotNull public Task<T> await()
@Nullable public T getResult() throws RuntimeThreadException
RuntimeThreadExceptionCopyright © 2016. All rights reserved.