Class | Jabber::Stream::ThreadBlock |
In: |
lib/xmpp4r/stream.rb
|
Parent: | Object |
This is used by Jabber::Stream internally to keep track of any blocks which were passed to Stream#send.
# File lib/xmpp4r/stream.rb, line 322 322: def initialize(block) 323: @block = block 324: @waiter = Semaphore.new 325: @exception = nil 326: end
# File lib/xmpp4r/stream.rb, line 337 337: def raise(exception) 338: @exception = exception 339: @waiter.run 340: end