- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for WaitFunc (0.13 sec)
-
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) -
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) -
staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go
return condition(ctx) } // waitFunc creates a channel that receives an item every time a test // should be executed and is closed when the last test should be invoked. // // Deprecated: Will be removed in a future release in favor of // loopConditionUntilContext. type waitFunc func(done <-chan struct{}) <-chan struct{} // WithContext converts the WaitFunc to an equivalent WaitWithContextFunc
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 19:14:11 UTC 2023 - 7.1K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/script.go
Args: "time", Detail: []string{ "The argument must be an absolute timestamp in RFC3339 format.", }, }, func(st *script.State, args ...string) (script.WaitFunc, error) { if len(args) != 1 { return nil, script.ErrUsage } sc, err := getScriptCtx(st) if err != nil { return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 08 19:37:03 UTC 2022 - 9K bytes - Viewed (0) -
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) -
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) -
src/cmd/go/internal/script/state.go
stderr string // standard error from last 'go' command; for 'stderr' command background []backgroundCmd } type backgroundCmd struct { *command wait WaitFunc } // NewState returns a new State permanently associated with ctx, with its // initial working directory in workdir and its initial environment set to // initialEnv (or os.Environ(), if initialEnv is nil). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 20:33:02 UTC 2023 - 6.9K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apimachinery/pkg/util/wait/poll.go
// a context that never gets cancelled or expired. // immediate: if true, the 'condition' will be invoked before waiting for the interval, // in this case 'condition' will always be invoked at least once. // wait: user specified WaitFunc function that controls at what interval the condition // function should be invoked periodically and whether it is bound by a timeout. // condition: user specified ConditionWithContextFunc function. //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 26 06:13:35 UTC 2023 - 14K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.14.md
* [Breaking change, client-go]: The WaitFor function returns, probably an ErrWaitTimeout, when the done channel is closed, even if the `WaitFunc` doesn't handle the done channel. ([#72364](https://github.com/kubernetes/kubernetes/pull/72364), [@kdada](https://github.com/kdada))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 14 22:06:39 UTC 2021 - 271.5K bytes - Viewed (0)