| 1 | # ImageProgress |
| 2 | |
| 3 | Progress item reported by image pull/import/load/push operations. |
| 4 | |
| 5 | **Properties** |
| 6 | |
| 7 | - `Id()` |
| 8 | - `Status()` |
| 9 | - `CurrentBytes()` |
| 10 | - `TotalBytes()` |
| 11 | |
| 12 | ```cpp |
| 13 | auto op = session.LoadImageAsync(L"C:\\images\\demo.tar"); |
| 14 | op.Progress([](auto&&, ImageProgress const& p) |
| 15 | { |
| 16 | printf("layer=%ws status=%d %llu/%llu\n", |
| 17 | p.Id().c_str(), |
| 18 | static_cast<int>(p.Status()), |
| 19 | p.CurrentBytes(), |
| 20 | p.TotalBytes()); |
| 21 | }); |
| 22 | co_await op; |
| 23 | ``` |