MCPcopy Create free account
hub / github.com/comaps/comaps / Load

Method Load

libs/storage/diff_scheme/diff_scheme_loader.cpp:140–148  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

138{
139// static
140void Loader::Load(LocalMapsInfo && info, DiffsReceivedCallback && callback)
141{
142 GetPlatform().RunTask(Platform::Thread::Network, [info = std::move(info), callback = std::move(callback)]()
143 {
144 auto result = ::Load(info);
145 GetPlatform().RunTask(Platform::Thread::Gui, [result = std::move(result), callback = std::move(callback)]() mutable
146 { callback(std::move(result)); });
147 });
148}
149} // namespace diffs
150} // namespace storage

Callers

nothing calls this directly

Calls 2

RunTaskMethod · 0.80
LoadFunction · 0.70

Tested by

no test coverage detected