| 631 | } |
| 632 | |
| 633 | void FlightClient::GetFlightInfoAsync( |
| 634 | const FlightCallOptions& options, const FlightDescriptor& descriptor, |
| 635 | std::shared_ptr<AsyncListener<FlightInfo>> listener) { |
| 636 | if (auto status = CheckOpen(); !status.ok()) { |
| 637 | listener->OnFinish(std::move(status)); |
| 638 | return; |
| 639 | } |
| 640 | transport_->GetFlightInfoAsync(options, descriptor, std::move(listener)); |
| 641 | } |
| 642 | |
| 643 | arrow::Future<FlightInfo> FlightClient::GetFlightInfoAsync( |
| 644 | const FlightCallOptions& options, const FlightDescriptor& descriptor) { |