🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 组件源码 ``` @InParams(param = { @Param(name = "future", comment = "future", type = Future.class) }) @OutParams(param = { @Param(name = "done", comment = "是否完成", type = boolean.class) }) @Returns(returns = { @Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功") }) @Component(label = "判断异步组件是否已完成", style = "判断型", type = "同步组件", version = "1.0.0", deprecated = false, comment = "判断Future是否已完成", date = "Fri Jul 17 15:23:18 CST 2017") public static ResultBase P_isFutureDone(Object future) { return future instanceof Future ? ResultBase.newSuccessResult(new Object[] { Boolean.valueOf(((Future) future).isDone()) }) : ResultBase.newFailureResult("TPTK0003", "参数必须是future类型"); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/77/b5/77b56e05a567ee876d1c82f716d8c4a8_1869x891.png) # 参数说明及示例 ## 入口参数 future:Future 类型的参数,示例: `__INNER__["future"]` ## 出口参数 是否完成:判断异步组件是否已完成,示例: `__INNER__["result"]`