Files
WSL/doc/docs/api-reference/cpp/data-classes/imageprogress.md
Blue 901cb9c134 Run the documentation pipeline when doc/ is edited + various rendering fixes (#40931)
* Run the documentation pipeline when doc/ is edited + various rendering fixes

* Fix inverted condition
2026-06-28 06:43:01 -07:00

24 lines
454 B
Markdown

# ImageProgress
Progress item reported by image pull/import/load/push operations.
**Properties**
- `Id()`
- `Status()`
- `CurrentBytes()`
- `TotalBytes()`
```cpp
auto op = session.LoadImageAsync(L"C:\\images\\demo.tar");
op.Progress([](auto&&, ImageProgress const& p)
{
printf("layer=%ws status=%d %llu/%llu\n",
p.Id().c_str(),
static_cast<int>(p.Status()),
p.CurrentBytes(),
p.TotalBytes());
});
co_await op;
```