Closed tobytop closed 3 years ago
本框架应该有自己的调度方式 如果需使用外层进行调度,根据实践,要修改下源码使用。可以控制内存增长。
public abstract partial class Spider : BackgroundService
{
///
public override void Dispose()
{
_requestedQueue.Dispose();
base.Dispose();
GC.Collect();
}
}
public class RequestedQueue : IDisposable
{
///
public void Dispose()
{
_timer.Stop();
_timer.Dispose();
}
}
同时希望获得作者采纳 @zlzforever
已采纳
如题