MCPcopy Create free account
hub / github.com/audacity/audacity / GetResult

Function GetResult

modules/sharing/mod-cloud-audiocom/CloudProjectOpenUtils.cpp:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54template<typename T>
55T GetResult(std::future<T>& future)
56{
57 while (future.wait_for(std::chrono::milliseconds(50)) !=
58 std::future_status::ready)
59 BasicUI::Yield();
60
61 return future.get();
62}
63
64bool HandleFailure(const ProjectSyncResult& result)
65{

Callers 2

OpenProjectFromCloudFunction · 0.70
SyncCloudProjectFunction · 0.70

Calls 2

YieldFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected