Skip to content

[建议] spider.run()方法调用线程处的一个优化建议 #695

Open
@7ye

Description

@7ye

在spider.run()方法里while循环else部分,多线程下抓取过程中调用spider.close(),会导致报
java.util.concurrent.RejectedExecutionException 异常,while处的验证有概率情况下没管用,建议优化下体验,加个try...catch,本来没问题的,只是有点强迫症,不喜欢看到异常

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions