apollo
apollo copied to clipboard
fix: move task such as it is destory after complete, to release potential shared ptr holding
This commit refactors the BoundedQueue class to intelligently handle element assignments by distinguishing between move-assignable and non-move-assignable types. By introducing templated assign functions and updating the Dequeue method accordingly, the queue now benefits from optimized performance without sacrificing compatibility