master
md 21 lines 425 Bytes
Rendered Raw
1 # InstallProgress
2
3 Progress item reported by `WslcService::InstallWithDependenciesAsync()`.
4
5 **Properties**
6
7 - `Component()`
8 - `Progress()`
9 - `Total()`
10
11 ```cpp
12 auto install = WslcService::InstallWithDependenciesAsync();
13 install.Progress([](auto&&, InstallProgress const& p)
14 {
15 printf("component=%d step=%u/%u\n",
16 static_cast<int>(p.Component()),
17 p.Progress(),
18 p.Total());
19 });
20 co_await install;
21 ```