github.com/Microsoft/hcsshim to v0.8.25

This commit is contained in:
Paco Xu
2022-12-17 22:08:54 +08:00
parent fdafd50085
commit 1cfbc8768b
6 changed files with 35 additions and 21 deletions

View File

@@ -275,11 +275,19 @@ func (computeSystem *System) waitBackground() {
oc.SetSpanStatus(span, err)
}
func (computeSystem *System) WaitChannel() <-chan struct{} {
return computeSystem.waitBlock
}
func (computeSystem *System) WaitError() error {
return computeSystem.waitError
}
// Wait synchronously waits for the compute system to shutdown or terminate. If
// the compute system has already exited returns the previous error (if any).
func (computeSystem *System) Wait() error {
<-computeSystem.waitBlock
return computeSystem.waitError
<-computeSystem.WaitChannel()
return computeSystem.WaitError()
}
// ExitError returns an error describing the reason the compute system terminated.