Avoid bumping cancellation token refcount on moved-in tokens
Summary: Task forces a copy of the passed-in token even when it's an rvalue, which results in two unnecessary atomic operations on the shared state. Take by value to allow moving. AsyncGenerator already does this. Reviewed By: yfeldblum Differential Revision: D26991772 fbshipit-source-id: 4697e36626158155329306928cbd1e7e69b8bd01
Showing
Please register or sign in to comment