按照预期,pool.Wait()应该会等待所有任务运行结束 实际情况在少量任务时会出现任务还没有开始执行,pool.Wait()就结束了 代码部分 <img width="846" alt="image" src="https://github.com/devchat-ai/gopool/assets/15796077/e4af8377-5370-43db-b122-e39f18c0cf5f"> 以下是从日志上检查到的异常情况的示例 异常情况1,任务已添加,但是任务没有运行,pool.Wait()直接就结束了 <img width="837" alt="image" src="https://github.com/devchat-ai/gopool/assets/15796077/7a0bd562-94cb-4482-9b79-6d10fb524340"> 异常情况2,任务已添加,pool.Wait()提前结束,任务才开始调度运行 <img width="807" alt="image" src="https://github.com/devchat-ai/gopool/assets/15796077/8392163b-85a9-4a99-9392-5382e8598f1b">