说明:耗时任务开启单独线程处理,任务线程处理完毕通知主线程 1.回调接口定义 public interface ResponseCallBack { public void printMsg(String msg); } 2.模拟耗时任务线程 public class TestMain { public static void main(String[] args){ ExecutorService executorService = Executors.newFixedThreadPool(1…
[是否等待返回就执行下一步] How to make asynchronous HTTP requests in PHP - Stack Overflow https://stackoverflow.com/questions/124462/how-to-make-asynchronous-http-requests-in-php [I don't care about the response] Is there a way in PHP to make asynchronous HTTP c…