Closed filterfish closed 9 years ago
This is a very common idiom:
receiver('queue').subscribe do |payload, receiver| blah(payload) do receiver.ack end end
By adding a to_proc method this could be reduced to:
to_proc
receiver('queue').subscribe do |payload, receiver| blah(payload, &receiver) end
This is a very common idiom:
By adding a
to_proc
method this could be reduced to: