Class: FDB::FormerFuture

Inherits:
Object
  • Object
show all
Defined in:
lib/fdbimpl.rb

Direct Known Subclasses

Cluster, Database

Instance Method Summary collapse

Instance Method Details

#block_until_readyObject



513
514
# File 'lib/fdbimpl.rb', line 513

def block_until_ready
end

#on_ready(&block) ⇒ Object



516
517
518
519
520
521
522
523
524
525
526
# File 'lib/fdbimpl.rb', line 516

def on_ready(&block)
  begin
    yield self
  rescue Exception
    begin
      $stderr.puts "Discarding uncaught exception from user callback:"
      $stderr.puts "#{$@.first}: #{$!.message} (#{$!.class})", $@.drop(1).map{|s| "\t#{s}"}
    rescue Exception
    end
  end
end

#ready?Boolean

Returns:

  • (Boolean)


509
510
511
# File 'lib/fdbimpl.rb', line 509

def ready?
  true
end