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

[C++] Future<{void,Status}> could be more generic

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 3.0.0
    • C++

    Description

      The members of {{Future<

      {void,Status}

      >}} differ from other instantiations of Future<> since they contain only a Status and not a value. This is reasonable, however it complicates generic usage of Future<> since special cases must be added for the different interfaces. IMHO it'd be acceptable to provide an empty "ValueType" (or maybe std::nullptr_t to follow the precedent of Datum's default state) for those specializations to keep the interface generic.

      Attachments

        Issue Links

          Activity

            People

              bkietz Ben Kietzman
              bkietz Ben Kietzman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h