Method: Tipi::HTTP2StreamHandler#run
- Defined in:
- lib/tipi/http2_stream.rb
#run(&block) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/tipi/http2_stream.rb', line 35 def run(&block) request = receive error = nil block.(request) @connection_fiber.schedule rescue Polyphony::BaseException raise rescue Exception => e error = e ensure @connection_fiber.schedule error end |