Commit a7316a1f authored by yihua.huang's avatar yihua.huang

add runasync

parent cad2594a
......@@ -215,6 +215,17 @@ public class Spider implements Runnable, Task {
}
}
public void runAsync(){
Thread thread = new Thread(){
@Override
public void run() {
Spider.this.run();
}
};
thread.setDaemon(false);
thread.start();
}
/**
* 建立多个线程下载
* @param threadNum 线程数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment