lib/temporal/workflow/future.rb
# When the activity fails, the block will be called with the exception
When the activity fails, the block will be called with the exception
When the activity fails the block will be called with the exception
def failed(&block)
        if failed?
          block.call(exception)
        else
          failure_callbacks << block
        end
      end
def failed ( & block ) if failed? block . call ( exception ) else failure_callbacks << block end end
When the activity fails, the block will be called with the exception
When the activity fails the block will be called with the exception
# If the future is still outstanding, schedule a callback for invocation by the # workflow context when the workflow or activity is finished
block