class Tarantool16::DumbDB::SchemaFuture
Constants
- UNDEF
Public Class Methods
new()
click to toggle source
# File lib/tarantool16/dumb_db.rb, line 97 def initialize @r = UNDEF end
Public Instance Methods
set(r)
click to toggle source
# File lib/tarantool16/dumb_db.rb, line 114 def set(r) @r = r end
then(cb)
click to toggle source
# File lib/tarantool16/dumb_db.rb, line 100 def then(cb) unless @r.equal? UNDEF return cb.call(@r) end raise "DumbDB::ShemaFuture future is not real future :-(" end
then_blk() { |r| ... }
click to toggle source
# File lib/tarantool16/dumb_db.rb, line 107 def then_blk unless @r.equal? UNDEF return yield @r end raise "DumbDB::ShemaFuture future is not real future :-(" end