class Concurrent::Promise
def execute
-
(Promise)
- a reference to `self`
def execute if root? if compare_and_set_state(:pending, :unscheduled) set_pending realize(@promise_body) end else compare_and_set_state(:pending, :unscheduled) @parent.execute end self end