Module: H2::Client::Concurrent
- Included in:
- H2::Client
- Defined in:
- lib/h2/client/concurrent.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#read(maxlen = DEFAULT_MAXLEN) ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/h2/client/concurrent.rb', line 17 def read maxlen = DEFAULT_MAXLEN main = Thread.current @reader = self.class.thread_pool.post do begin _read maxlen rescue => e main.raise e end end end |