We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4edc733 commit 10cf21dCopy full SHA for 10cf21d
process.go
@@ -52,6 +52,15 @@ type Process interface {
52
Status(context.Context) (Status, error)
53
}
54
55
+// NewExitStatus populates an ExitStatus
56
+func NewExitStatus(code uint32, t time.Time, err error) *ExitStatus {
57
+ return &ExitStatus{
58
+ code: code,
59
+ exitedAt: t,
60
+ err: err,
61
+ }
62
+}
63
+
64
// ExitStatus encapsulates a process' exit status.
65
// It is used by `Wait()` to return either a process exit code or an error
66
type ExitStatus struct {
0 commit comments