| 程序包 | 说明 |
|---|---|
| com.ckjava.xutils.promise |
| 限定符和类型 | 方法和说明 |
|---|---|
Promise<T> |
Promise.Builder.build() |
static <T> Promise<T> |
Promise.of(java.util.concurrent.Callable<T> callable)
通过 of 静态方法返回 Promise 对象
|
Promise<T> |
Promise.then(Resolve<T> resolve)
方法执行完毕后,对方法返回结果的处理
|
Promise<T> |
Promise.thenCatch(Reject reject)
方法出现异常的处理
|
Promise<T> |
Promise.thenFinally(java.lang.Runnable runnable)
方法最终的 finally 代码块
|
Copyright © 2021. All Rights Reserved.