Method: Pixo::Rpc::AddPattern#call
- Defined in:
- lib/pixo/rpc/request_types.rb
#call(service) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/pixo/rpc/request_types.rb', line 23 def call(service) result = nil latch = Concurrent::CountDownLatch.new(1) service.application.post( Proc.new do |app| app.add_pattern(@name, @code) result = @name latch.count_down end) latch.wait result end |