MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / NewTimeoutCmd

Function NewTimeoutCmd

internal/utils/exec/cmd.go:40–45  ·  view source on GitHub ↗
(timeout time.Duration, name string, args ...string)

Source from the content-addressed store, hash-verified

38}
39
40func NewTimeoutCmd(timeout time.Duration, name string, args ...string) *Cmd {
41 return (&Cmd{
42 name: name,
43 args: args,
44 }).WithTimeout(timeout)
45}
46
47func (this *Cmd) WithTimeout(timeout time.Duration) *Cmd {
48 this.timeout = timeout

Callers

nothing calls this directly

Calls 1

WithTimeoutMethod · 0.80

Tested by

no test coverage detected