나는 RabbitMq를 사용하여 통신하고 있으므로 메시지 하나만 수신하고 구독을 취소하고 싶습니다. 루비 버거에서 어떻게? 내 구독 블록은 매우 간단합니다 :rabbitmq 큐에서 하나의 메시지 만 받고 수신 거부
아마queue.subscribe(block: true) do |delivery_info, properties, payload|
puts "[consumer] #{q.name} received a message: #{payload}"
end