class Promise
Class implements promise/future promise
Public Class Methods
new(_then)
click to toggle source
Constructing object with then-function @param [Proc] _then Then-function
# File lib/bellite.rb, line 601 def initialize(_then) if _then @_then = _then end end
Public Instance Methods
promise()
click to toggle source
Returns this object @return [Promise]
# File lib/bellite.rb, line 609 def promise return self end