Lines Matching defs:context
19 "context"
29 func ExecContext(ctx context.Context, name string, args ...string) error {
30 ctx, fn := context.WithTimeout(ctx, 6*time.Hour)
33 if errors.Is(err, context.Canceled) {
42 func execContext(ctx context.Context, name string, args ...string) error {
63 func ExecCombinedOutputContext(ctx context.Context, name string, args ...string) ([]byte, error) {
64 ctx, fn := context.WithTimeout(ctx, 6*time.Hour)
68 if errors.Is(err, context.Canceled) {
77 func execCombinedOutputContext(ctx context.Context, name string, args ...string) ([]byte, error) {
85 func SleepContext(duration time.Duration, ctx context.Context) {