Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for WaitFunc (0.11 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    		condition        ConditionWithContextFunc
    		waitFunc         func() waitFunc
    		attemptsExpected int
    		errExpected      error
    	}{
    		{
    			name:    "condition returns done=true on first attempt, no retry is attempted",
    			context: defaultContext,
    			condition: ConditionWithContextFunc(func(context.Context) (bool, error) {
    				return true, nil
    			}),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  2. src/cmd/go/internal/script/cmds.go

    func Command(usage CmdUsage, run func(*State, ...string) (WaitFunc, error)) Cmd {
    	return &funcCmd{
    		usage: usage,
    		run:   run,
    	}
    }
    
    // A funcCmd implements Cmd using a function value.
    type funcCmd struct {
    	usage CmdUsage
    	run   func(*State, ...string) (WaitFunc, error)
    }
    
    func (c *funcCmd) Run(s *State, args ...string) (WaitFunc, error) {
    	return c.run(s, args...)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  3. src/cmd/go/scriptcmds_test.go

    func scriptCC(cmdExec script.Cmd) script.Cmd {
    	return script.Command(
    		script.CmdUsage{
    			Summary: "run the platform C compiler",
    			Args:    "args...",
    		},
    		func(s *script.State, args ...string) (script.WaitFunc, error) {
    			b := work.NewBuilder(s.Getwd())
    			wait, err := cmdExec.Run(s, append(b.GccCmd(".", ""), args...)...)
    			if err != nil {
    				return wait, err
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 18:33:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/script/engine.go

    	// a WaitFunc that will be called to obtain the result of the command and
    	// update the engine's stdout and stderr buffers.
    	//
    	// Run itself and the returned WaitFunc may inspect and/or modify the State,
    	// but the State's methods must not be called concurrently after Run has
    	// returned.
    	//
    	// Run may retain and access the args slice until the WaitFunc has returned.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/script/scripttest/scripttest.go

    func Skip() script.Cmd {
    	return script.Command(
    		script.CmdUsage{
    			Summary: "skip the current test",
    			Args:    "[msg]",
    		},
    		func(_ *script.State, args ...string) (script.WaitFunc, error) {
    			if len(args) > 1 {
    				return nil, script.ErrUsage
    			}
    			if len(args) == 0 {
    				return nil, skipError{""}
    			}
    			return nil, skipError{args[0]}
    		})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 11 20:12:18 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top