| 249 | |
| 250 | template <typename T> |
| 251 | arrow::Result<T> SafeCallIntoR(std::function<T(void)> fun, |
| 252 | std::string reason = "unspecified") { |
| 253 | arrow::Future<T> future = SafeCallIntoRAsync<T>(std::move(fun), reason); |
| 254 | return future.result(); |
| 255 | } |
| 256 | |
| 257 | static inline arrow::Status SafeCallIntoRVoid(std::function<void(void)> fun, |
| 258 | std::string reason = "unspecified") { |