/Engine/Source/Runtime/Core/Public/Containers/DepletableMpmcQueue.h
Takes all items from the queue atomically and then consumes them.
namespace UE { template<typename F> void UE::Deplete ( const F & Consumer ) }