Method: Async::HTTP::Protocol::HTTP2::Connection#initialize
- Defined in:
- lib/async/http/protocol/http2/connection.rb
#initialize ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/async/http/protocol/http2/connection.rb', line 30 def initialize(...) super @reader = nil # Writing multiple frames at the same time can cause odd problems if frames are only partially written. So we use a semaphore to ensure frames are written in their entirety. @write_frame_guard = Async::Semaphore.new(1) end |