类的使用
com.dtflys.forest.http.ForestFuture
使用ForestFuture的程序包
-
com.dtflys.forest中ForestFuture的使用
参数类型为ForestFuture的com.dtflys.forest中的方法修饰符和类型方法说明static List<ForestResponse>Forest.await(ForestFuture... futures) 等待多个请求响应结果,并阻塞当前调用改方法的线程,只有当参数中所有请求结果都返回后才会继续执行类型变量类型为ForestFuture的com.dtflys.forest中的方法参数修饰符和类型方法说明static List<ForestResponse>Forest.await(Collection<ForestFuture> futures) 等待多个请求响应结果,并阻塞当前调用改方法的线程,只有当参数中所有请求结果都返回后才会继续执行static voidForest.await(Collection<ForestFuture> futures, Consumer<ForestResponse> callback) 等待多个请求响应结果,并阻塞当前调用改方法的线程,当参数中所有请求结果都返回后调用参数中的 callback 回调函数 -
com.dtflys.forest.http中ForestFuture的使用