MCPcopy Create free account
hub / github.com/activeloopai/deeplake / force_refresh

Method force_refresh

cpp/deeplake_pg/table_data_impl.hpp:188–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188inline void table_data::force_refresh()
189{
190 if (pg::use_shared_mem_for_refresh) {
191 return;
192 }
193 if (refresh_promise_ && !refresh_promise_.cancel()) {
194 refresh_promise_.get_future().get();
195 }
196 ASSERT(refreshing_dataset_ != nullptr);
197 refresh_promise_ = async::run_on_main([d = refreshing_dataset_]() {
198 return d->refresh();
199 });
200}
201
202inline const std::string& table_data::get_table_name() const noexcept
203{

Callers

nothing calls this directly

Calls 5

run_on_mainFunction · 0.85
get_futureMethod · 0.80
cancelMethod · 0.45
getMethod · 0.45
refreshMethod · 0.45

Tested by

no test coverage detected