Wait waits for any ongoing unpack processes to complete then will return the result.
()
| 274 | // Wait waits for any ongoing unpack processes to complete then will return |
| 275 | // the result. |
| 276 | func (u *Unpacker) Wait() (Result, error) { |
| 277 | if err := u.eg.Wait(); err != nil { |
| 278 | return Result{}, err |
| 279 | } |
| 280 | return Result{ |
| 281 | Unpacks: int(u.unpacks.Load()), |
| 282 | }, nil |
| 283 | } |
| 284 | |
| 285 | // unpackConfig is a subset of the OCI config for resolving rootfs and platform, |
| 286 | // any config type which supports the platform and rootfs field can be supported. |
no test coverage detected