lib/temporal/workflow/future.rb
def done(&block)
        if ready?
          block.call(result)
        else
          # If the future is still outstanding, schedule a callback for invocation by the
          # workflow context when the workflow or activity is finished
          success_callbacks << block
        end
      end
# When the activity completes successfully, the block will be called with any result
When the activity completes successfully, the block will be called with any result
When the activity completes successfully the block will be called with any result
def done(&block)
        if ready?
          block.call(result)
        else
          success_callbacks << block
        end
      end
def done ( & block ) if ready? block . call ( result ) else success_callbacks << block end end
When the activity completes successfully, the block will be called with any result
When the activity completes successfully the block will be called with any result
# If the future is still outstanding, schedule a callback for invocation by the # workflow context when the workflow or activity is finished
block