mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 06:09:04 +00:00
* Run the documentation pipeline when doc/ is edited + various rendering fixes * Fix inverted condition
24 lines
454 B
Markdown
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;
|
|
```
|