AsyncOperation.ResultConsumer<T> 接口
类型参数
- T
第一个参数类型
public interface ResultConsumer
表示在完成 AsyncOperation 后要调用的操作。 值得注意的是,仅当需要单个参数(如 AsyncOperation.thenAccept)时,才使用此功能接口。
这是等效于 android 使用者接口的功能接口
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
void |
accept(T t)
对给定参数执行操作 |
方法详细信息
accept
public void accept(T t)
对给定参数执行操作
参数:
t
- 使用者的输入参数