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

Function MakePoller

modules/sharing/mod-cloud-audiocom/CloudAudioOpenUtils.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47auto MakePoller(BasicUI::ProgressDialog& dialog)
48{
49 return [&dialog](double progress)
50 {
51 return dialog.Poll(static_cast<unsigned>(progress * 10000), 10000ULL) ==
52 BasicUI::ProgressResult::Success;
53 };
54}
55
56template<typename T>
57T GetResult(std::future<T>& future)

Callers 1

OpenAudioFromCloudFunction · 0.70

Calls 1

PollMethod · 0.45

Tested by

no test coverage detected