lib/em-ssh/callbacks.rb
# Registers a callback that will be canceled after the first time it is called.
Registers a callback that will be canceled after the first time it is called.
Registers a callback that will be canceled after the first time it is called .
def on_next(event, &blk)
        cb = on(event) do |*args|
          cb.cancel
          blk.call(*args)
        end 
      end
def on_next ( event , & blk ) cb = on ( event ) do | * args | cb . cancel blk . call ( * args ) end end
Registers a callback that will be canceled after the first time it is called.
Registers a callback that will be canceled after the first time it is called .
# |*args|
event
<not_specific>
blk
<not_specific>