MCPcopy Create free account
hub / github.com/apache/arrow / CloseAsync

Method CloseAsync

cpp/src/arrow/filesystem/azurefs.cc:1145–1159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143 }
1144
1145 Future<> CloseAsync() override {
1146 if (closed_) {
1147 return Status::OK();
1148 }
1149
1150 if (current_block_) {
1151 // Upload remaining buffer
1152 RETURN_NOT_OK(AppendCurrentBlock());
1153 }
1154
1155 return FlushAsync().Then([self = Self()]() {
1156 self->block_blob_client_ = nullptr;
1157 self->closed_ = true;
1158 });
1159 }
1160
1161 bool closed() const override { return closed_; }
1162

Callers

nothing calls this directly

Calls 2

ThenMethod · 0.80
OKFunction · 0.50

Tested by

no test coverage detected