| 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 266
266: def initialize(block)
267: @block = block
268: @waiter = Semaphore.new
269: @exception = nil
270: end
# File lib/xmpp4r/stream.rb, line 282
282: def raise(exception)
283: @exception = exception
284: @waiter.run
285: end