Hutool异步调用方法

Hutool异步调用方法

POM


 
   cn.hutool
    hutool-all
    4.1.19
 
public class test01 {
     
    public static void main(String[] args) {
     
        System.out.println("+++++++++++++++++++++++++++");
        Integer num = 100;
        ThreadUtil.excAsync(()->get(num),false);
        System.out.println("888dfsdfds++************************+fewfewfwfwefwdfdfgdf");
    }

    private static void get(Integer num){
     
        for (int i=num; i<=1000; i++){
     
            System.out.println("的马赛克萨摩贷款马上到了;阿克苏来的快哦考克斯懂啊剋送拍");
        }
    }
}

你可能感兴趣的:(工具介绍,java)