- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,078 for ONCE (0.03 sec)
-
src/vendor/golang.org/x/net/nettest/conntest.go
func timeoutWrapper(t *testing.T, mp MakePipe, f connTester) { t.Helper() c1, c2, stop, err := mp() if err != nil { t.Fatalf("unable to make pipe: %v", err) } var once sync.Once defer once.Do(func() { stop() }) timer := time.AfterFunc(time.Minute, func() { once.Do(func() { t.Error("test timed out; terminating pipe") stop() }) }) defer timer.Stop() f(t, c1, c2) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 12.2K bytes - Viewed (0) -
internal/logger/target/kafka/kafka.go
// store to persist and replay the logs to the target // to avoid missing events when the target is down. store store.Store[interface{}] storeCtxCancel context.CancelFunc initKafkaOnce once.Init initQueueStoreOnce once.Init client sarama.Client producer sarama.SyncProducer kconfig Config config *sarama.Config } func (h *Target) validate() error { if len(h.kconfig.Brokers) == 0 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jun 02 03:03:39 UTC 2024 - 10.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/update.go
var once sync.Once var authorizerDecision authorizer.Decision var authorizerReason string var authorizerErr error return func(ctx context.Context, obj runtime.Object) error { if a == nil { return errors.NewInternalError(fmt.Errorf("no authorizer provided, unable to authorize a create on update")) } once.Do(func() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 20:19:46 UTC 2023 - 11.5K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/proxy.go
a site serving from a fixed file system (including a file:/// URL) can be a module proxy. For details on the GOPROXY protocol, see https://golang.org/ref/mod#goproxy-protocol. `, } var proxyOnce struct { sync.Once list []proxySpec err error } type proxySpec struct { // url is the proxy URL or one of "off", "direct", "noproxy". url string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 03 15:21:05 UTC 2023 - 13K bytes - Viewed (0) -
common-protos/k8s.io/api/resource/v1alpha2/generated.proto
// ResourceHandles contain the state associated with an allocation that // should be maintained throughout the lifetime of a claim. Each // ResourceHandle contains data that should be passed to a specific kubelet // plugin once it lands on a node. This data is returned by the driver // after a successful allocation and is opaque to Kubernetes. Driver // documentation may explain to users how to interpret this data if needed. //
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 14.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go
if err != nil { return nil, nil, err } var once sync.Once destroyFunc := func() { // we know that storage destroy funcs are called multiple times (due to reuse in subresources). // Hence, we only destroy once. // TODO: fix duplicated storage destroy calls higher level once.Do(func() { stopCompactor() stopDBSizeMonitor() client.Close() }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 07:56:39 UTC 2024 - 15.1K bytes - Viewed (0) -
internal/event/target/mysql.go
"os" "path/filepath" "strconv" "strings" "time" "github.com/go-sql-driver/mysql" "github.com/minio/minio/internal/event" "github.com/minio/minio/internal/logger" "github.com/minio/minio/internal/once" "github.com/minio/minio/internal/store" xnet "github.com/minio/pkg/v3/net" ) const ( mysqlTableExists = `SELECT 1 FROM %s;` // Some MySQL has a 3072 byte limit on key sizes.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 11.5K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/controller/repair.go
func (c *Repair) RunUntil(onFirstSuccess func(), stopCh chan struct{}) { c.broadcaster.StartRecordingToSink(stopCh) defer c.broadcaster.Shutdown() var once sync.Once wait.Until(func() { if err := c.runOnce(); err != nil { runtime.HandleError(err) return } once.Do(onFirstSuccess) }, c.interval, stopCh) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 30 15:46:06 UTC 2023 - 13.8K bytes - Viewed (0) -
pkg/util/async/bounded_frequency_runner_test.go
// Start. go runner.Loop(stop) upd = <-timer.updated // wait for initial time to be set to max checkTimer("init", t, upd, true, maxInterval) checkReceiver("init", t, obj, false) // Run once, immediately. // rel=0ms runner.Run() waitForRun("first run", t, timer, obj) // Run again, before minInterval expires. timer.advance(500 * time.Millisecond) // rel=500ms runner.Run()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 15 09:36:26 UTC 2022 - 12.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ProjectExtensions.kt
extensions.findByType(type)?.let(configuration) ?: Factory { // Find and configure convention // Reflective look up to still support plugins that inlined this function once conventions will be removed this::class.java.methods .firstOrNull { it.name == "getConvention" } ?.invoke(this) ?.let { convention ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 09:50:04 UTC 2024 - 11.5K bytes - Viewed (0)