Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-12009

[C++] Then(const Result<T>&) should run on failure or success

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • C++

    Description

      Adding two callbacks can lead to dense difficult to read code.  If the caller asks for a result then it should be easy to let the callback handle both the failure and the success case.

      Attachments

        Activity

          People

            westonpace Weston Pace
            westonpace Weston Pace
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment