
Add exported `Wait(ctx context.Context) error` interface that waits on the underlying command (or context cancellation) and returns the error. This fixes a race condition between `.wait()` and `.Err error`: https://github.com/containerd/containerd/issues/6914 Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>