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 275 275: def initialize(block) 276: @block = block 277: @waiter = Semaphore.new 278: @exception = nil 279: end
# File lib/xmpp4r/stream.rb, line 291 291: def raise(exception) 292: @exception = exception 293: @waiter.run 294: end