FutureChainResultExtension<M, R> extension
Future<ChainResult<M, R>> 扩展方法 支持在 ChainResult 的 Future 上继续链式调用
- on
-
- Future<
ChainResult< M, R> >
- Future<
Methods
-
thenWith<
R2, E> (Future< Response< nextRequest(M extracted, Response<R2> >R> prevResponse), {E? extractor(Response<R2> response)?, M updater(M extracted, E? extractedValue)?}) → Future<ChainResult< M, R2> > -
Available on Future<
继续链式调用(中间步骤) 等同于 await chainResult.thenWith(...)ChainResult< , provided by the FutureChainResultExtension extensionM, R> > -
thenWithUpdate<
R2> (Future< Response> nextRequest(M extracted, Response<R> prevResponse), R2? extractor(Response response), M updater(M extracted, R2? extractedValue)) → Future<M?> -
Available on Future<
继续链式调用,传递提取的对象和响应,更新对象并返回(最后一步) 等同于 await chainResult.thenWithUpdate(...)ChainResult< , provided by the FutureChainResultExtension extensionM, R> >