Class: Quark::MdkRuntime::Promise::ChainPromise

Inherits:
DatawireQuarkCore::QuarkObject show all
Extended by:
DatawireQuarkCore::Static
Defined in:
lib/mdk_runtime/promise.rb

Constant Summary

Constants included from DatawireQuarkCore::Static

DatawireQuarkCore::Static::Unassigned

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DatawireQuarkCore::Static

_lazy_statics, static, unlazy_statics

Methods inherited from DatawireQuarkCore::QuarkObject

#to_s

Constructor Details

#initialize(next_) ⇒ ChainPromise

Returns a new instance of ChainPromise.



39
40
41
42
43
44
45
# File 'lib/mdk_runtime/promise.rb', line 39

def initialize(next_)
    
    self.__init_fields__
    (self)._next = next_

    nil
end

Instance Attribute Details

#_nextObject

Returns the value of attribute _next.



32
33
34
# File 'lib/mdk_runtime/promise.rb', line 32

def _next
  @_next
end

Instance Method Details

#__init_fields__Object



84
85
86
87
88
89
# File 'lib/mdk_runtime/promise.rb', line 84

def __init_fields__()
    
    self._next = nil

    nil
end

#_getClassObject



58
59
60
61
62
63
# File 'lib/mdk_runtime/promise.rb', line 58

def _getClass()
    
    return "mdk_runtime.promise._ChainPromise"

    nil
end

#_getField(name) ⇒ Object



65
66
67
68
69
70
71
72
73
# File 'lib/mdk_runtime/promise.rb', line 65

def _getField(name)
    
    if ((name) == ("_next"))
        return (self)._next
    end
    return nil

    nil
end

#_setField(name, value) ⇒ Object



75
76
77
78
79
80
81
82
# File 'lib/mdk_runtime/promise.rb', line 75

def _setField(name, value)
    
    if ((name) == ("_next"))
        (self)._next = ::DatawireQuarkCore.cast(value) { ::Quark.mdk_runtime.promise.Promise }
    end

    nil
end

#call(arg) ⇒ Object



50
51
52
53
54
55
56
# File 'lib/mdk_runtime/promise.rb', line 50

def call(arg)
    
    ::Quark.mdk_runtime.promise._fullfilPromise((self)._next, arg)
    return nil

    nil
end