Default ReadMetadataAsync() implementation: simply issue the read on the context's executor
| 122 | // Default ReadMetadataAsync() implementation: simply issue the read on the context's |
| 123 | // executor |
| 124 | Future<std::shared_ptr<const KeyValueMetadata>> InputStream::ReadMetadataAsync( |
| 125 | const IOContext& ctx) { |
| 126 | std::shared_ptr<InputStream> self = |
| 127 | std::dynamic_pointer_cast<InputStream>(shared_from_this()); |
| 128 | return DeferNotOk(internal::SubmitIO(ctx, [self] { return self->ReadMetadata(); })); |
| 129 | } |
| 130 | |
| 131 | Future<std::shared_ptr<const KeyValueMetadata>> InputStream::ReadMetadataAsync() { |
| 132 | return ReadMetadataAsync(io_context()); |
nothing calls this directly
no test coverage detected