class Concurrent::Promise
def execute
- Since: - 0.5.0
Returns:
-
(Promise)
-
def execute if root? if compare_and_set_state(:pending, :unscheduled) set_pending realize(@promise_body) end else @parent.execute end self end
(Promise)
-
def execute if root? if compare_and_set_state(:pending, :unscheduled) set_pending realize(@promise_body) end else @parent.execute end self end