You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ARROW-12004: [C++] Result<detail::Empty> is annoying
Per the JIRA
`Future<>::AddCallback` callbacks receive a `Status`.
`Future<T>::AddCallback` callbacks receive a `Result<T>`
`Future<>::Then` callbacks receive nothing
`Future<T>::Then` callbacks receive `const T&`
To achieve this I had to explicitly specialize the empty `Future` but I introduced `FutureBase` to reduce the amount of duplicated code. `detail::Empty` is still around (although it got renamed to `internal::Empty` as a side effect of moving into `functional.h`). It could even be removed if one wanted to create a specialized `FutureImpl` but that doesn't seem to be needed at the moment.
Closesapache#10205 from westonpace/feature/ARROW-12004--c-result-detail-empty-is-annoying
Authored-by: Weston Pace <weston.pace@gmail.com>
Signed-off-by: Benjamin Kietzman <bengilgit@gmail.com>
0 commit comments