Java 非同步呼叫方法

chengeng發表於2024-11-15
AtomicReference<Boolean> isSyncSuccess = new AtomicReference<>(false);
CompletableFuture<Void> future = CompletableFuture.runAsync(() ->
{
isSyncSuccess.set(syncErpClothBarCodeInfoService.sync(clothBarCodeInfo_DB.getPlanID()));
});

相關文章