Class: FDB::FormerFuture
- Inherits:
-
Object
- Object
- FDB::FormerFuture
- Defined in:
- lib/fdbimpl.rb
Instance Method Summary collapse
Instance Method Details
#block_until_ready ⇒ Object
490 491 |
# File 'lib/fdbimpl.rb', line 490 def block_until_ready end |
#on_ready(&block) ⇒ Object
493 494 495 496 497 498 499 500 501 502 503 |
# File 'lib/fdbimpl.rb', line 493 def on_ready(&block) begin yield self rescue Exception begin $stderr.puts "Discarding uncaught exception from user callback:" $stderr.puts "#{$@.first}: #{$!.} (#{$!.class})", $@.drop(1).map{|s| "\t#{s}"} rescue Exception end end end |
#ready? ⇒ Boolean
486 487 488 |
# File 'lib/fdbimpl.rb', line 486 def ready? true end |