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



489
490
# File 'lib/fdbimpl.rb', line 489

def block_until_ready
end

#on_ready(&block) ⇒ Object



492
493
494
495
496
497
498
499
500
501
502
# File 'lib/fdbimpl.rb', line 492

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

#ready?Boolean

Returns:

  • (Boolean)


485
486
487
# File 'lib/fdbimpl.rb', line 485

def ready?
  true
end