containerd/execution/supervisor.go

13 lines
182 B
Go
Raw Normal View History

package execution
type Supervisor struct {
}
type waiter interface {
Wait() (uint32, error)
}
func (s *Supervisor) Monitor(w waiter, cb func(uint32, error)) {
go cb(w.Wait())
}