- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,769 for Forever (0.17 sec)
-
internal/lock/lock_solaris.go
} // TryLockedOpenFile - tries a new write lock, functionality // it is similar to LockedOpenFile with with syscall.LOCK_EX // mode but along with syscall.LOCK_NB such that the function // doesn't wait forever but instead returns if it cannot // acquire a write lock. func TryLockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { return lockedOpenFile(path, flag, perm, syscall.F_SETLK) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 2.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/extractdoc.go
// // // // # Analyzer halting // // // // halting: reports whether execution will halt. // // // // The halting analyzer reports a diagnostic for functions // // that run forever. To suppress the diagnostics, try inserting // // a 'break' statement into each loop. // package halting // // import _ "embed" // // //go:embed doc.go // var doc string // // And declare your analyzer as:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 3.4K bytes - Viewed (0) -
pkg/controller/garbagecollector/dump.go
uid := uidsToCheck[i] // if we've already been observed, there was a bug, but skip it so we don't loop forever if _, ok := interestingNodes[uid]; ok { continue } node, ok := uidToNode[uid] // if there is no node for the UID, skip over it. We may add it to the list multiple times // but we won't loop forever and hopefully the condition doesn't happen very often if !ok { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 23 17:12:33 UTC 2022 - 9.5K bytes - Viewed (0) -
pkg/ledger/smt_test.go
// Add data to empty trie keys := getFreshData(10) values := getFreshData(10) _, err := smt.Update(keys, values) assert.NoError(t, err) smt.db.updatedNodes = byteCache{cache: cache.NewTTL(forever, time.Minute)} smt.loadDefaultHashes() // Check errors are raised is a keys is not in cache nor db for _, key := range keys { _, err := smt.Get(key) assert.Error(t, err)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 7.9K bytes - Viewed (0) -
pkg/kubelet/config/file_linux.go
} func (e *retryableError) Error() string { return e.message } func (s *sourceFile) startWatch() { backOff := flowcontrol.NewBackOff(retryPeriod, maxRetryPeriod) backOffID := "watch" go wait.Forever(func() { if backOff.IsInBackOffSinceUpdate(backOffID, time.Now()) { return } if err := s.doWatch(); err != nil { klog.ErrorS(err, "Unable to read config path", "path", s.path)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 17:27:26 UTC 2023 - 3.8K bytes - Viewed (0) -
pkg/ledger/smt.go
atomicUpdate bool } // this is the closest time.Duration comes to Forever, with a duration of ~145 years // we can'tree use int64 max because the duration gets added to Now(), and the ints // rollover, causing an immediate expiration (ironic, eh?) const forever time.Duration = 1<<(63-1) - 1
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 14K bytes - Viewed (0) -
test/stress/runstress.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The runstress tool stresses the runtime. // // It runs forever and should never fail. It tries to stress the garbage collector, // maps, channels, the network, and everything else provided by the runtime. package main import ( "flag" "fmt" "io" "log" "math/rand" "net"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:21:35 UTC 2024 - 3.6K bytes - Viewed (0) -
cluster/gce/gci/configure.sh
echo "Bailing out." >&2 exit 2 ;; esac } # Retries a command forever with a delay between retries. # Args: # $1 : delay between retries, in seconds. # $2... : the command to run. function retry-forever { local -r delay="$1" shift 1 until "$@"; do echo "== $* failed, retrying after ${delay}s" sleep "${delay}" done
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 04:14:02 UTC 2024 - 36.5K bytes - Viewed (0) -
src/context/x_test.go
}) if !ok { t.Fatal("DeadlineExceeded does not support Timeout interface") } if !i.Timeout() { t.Fatal("wrong value for timeout") } } func TestCause(t *testing.T) { var ( forever = 1e6 * time.Second parentCause = fmt.Errorf("parentCause") childCause = fmt.Errorf("childCause") tooSlow = fmt.Errorf("tooSlow") finishedEarly = fmt.Errorf("finishedEarly") )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 26.3K bytes - Viewed (0) -
src/net/dial_test.go
} primaries := makeAddrs(tt.primaries, "80") fallbacks := makeAddrs(tt.fallbacks, "80") d := Dialer{ FallbackDelay: fallbackDelay, } const forever = 60 * time.Minute if tt.expectElapsed == instant { d.FallbackDelay = forever } startTime := time.Now() sd := &sysDialer{ Dialer: d, network: "tcp", address: "?", testHookDialTCP: dialTCP,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 30.3K bytes - Viewed (0)