class Cassandra::Promise
@private
Attributes
future[R]
Public Class Methods
new(executor)
click to toggle source
# File lib/cassandra/future.rb 775 def initialize(executor) 776 @signal = Signal.new(executor) 777 @future = Future.new(@signal) 778 end
Public Instance Methods
break(error)
click to toggle source
# File lib/cassandra/future.rb 780 def break(error) 781 @signal.failure(error) 782 self 783 end
fulfill(value)
click to toggle source
# File lib/cassandra/future.rb 785 def fulfill(value) 786 @signal.success(value) 787 self 788 end
observe(future)
click to toggle source
# File lib/cassandra/future.rb 790 def observe(future) 791 future.add_listener(@signal) 792 end