- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 341 for practice (0.18 sec)
-
test/nilptr3.go
} _ = x[9999] // ERROR "generated nil check" fx10k() // This one is a bit redundant, if we figured out that // x wasn't going to change across the function call. // But it's a little complex to do and in practice doesn't // matter enough. _ = x[9999] // ERROR "removed nil check" } func f3a() { x := fx10k() y := fx10k() z := fx10k() _ = &x[9] // ERROR "generated nil check" y = z
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 5.6K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ExecutionList.java
// in the opposite order from how they were added so we need to reverse the list to fulfill our // contract. // This is somewhat annoying, but turns out to be very fast in practice. Alternatively, we could // drop the contract on the method that enforces this queue like behavior since depending on it // is likely to be a bug anyway.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 22 21:17:24 UTC 2024 - 6.9K bytes - Viewed (0) -
src/runtime/trace/annotation.go
// handful of unique region types. func WithRegion(ctx context.Context, regionType string, fn func()) { // NOTE: // WithRegion helps avoiding misuse of the API but in practice, // this is very restrictive: // - Use of WithRegion makes the stack traces captured from // region start and end are identical. // - Refactoring the existing code to use WithRegion is sometimes
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 20 00:47:09 UTC 2023 - 6.1K bytes - Viewed (0) -
src/internal/gover/gover.go
// A Version is a parsed Go version: major[.Minor[.Patch]][kind[pre]] // The numbers are the original decimal strings to avoid integer overflows // and since there is very little actual math. (Probably overflow doesn't matter in practice, // but at the time this code was written, there was an existing test that used // go1.99999999999, which does not fit in an int on 32-bit platforms. // The "big decimal" representation avoids the problem entirely.)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 23:20:32 UTC 2023 - 5.8K bytes - Viewed (0) -
pilot/cmd/pilot-discovery/app/cmd.go
return fmt.Errorf("failed to start discovery service: %v", err) } cmd.WaitSignal(stop) // Wait until we shut down. In theory this could block forever; in practice we will get // forcibly shut down after 30s in Kubernetes. discoveryServer.WaitUntilCompletion() return nil }, } } func addFlags(c *cobra.Command) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 12 16:44:32 UTC 2024 - 8.5K bytes - Viewed (0) -
src/vendor/golang.org/x/net/http2/hpack/tables.go
// are 1-based. The unique id for ents[k] is k + evictCount + 1. // // Zero is not a valid unique id. // // evictCount should not overflow in any remotely practical situation. In // practice, we will have one dynamic table per HTTP/2 connection. If we // assume a very powerful server that handles 1M QPS per connection and each // request adds (then evicts) 100 entries from the table, it would still take
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 22:32:44 UTC 2022 - 7.5K bytes - Viewed (0) -
pkg/kubelet/cm/dra/plugin/noderesources.go
func (c *nodeResourcesController) run(ctx context.Context) { logger := klog.FromContext(ctx) // When kubelet starts, we have two choices: // - Sync immediately, which in practice will delete all ResourceSlices // because no plugin has registered yet. We could do a DeleteCollection // to speed this up. // - Wait a bit, then sync. If all plugins have re-registered in the meantime,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 20:12:53 UTC 2024 - 16.6K bytes - Viewed (0) -
src/context/example_test.go
func ExampleWithDeadline() { d := time.Now().Add(shortDuration) ctx, cancel := context.WithDeadline(context.Background(), d) // Even though ctx will be expired, it is good practice to call its // cancellation function in any case. Failure to do so may keep the // context and its parent alive longer than necessary. defer cancel() select { case <-neverReady: fmt.Println("ready")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 20:24:28 UTC 2023 - 6.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ExecutionList.java
// in the opposite order from how they were added so we need to reverse the list to fulfill our // contract. // This is somewhat annoying, but turns out to be very fast in practice. Alternatively, we could // drop the contract on the method that enforces this queue like behavior since depending on it // is likely to be a bug anyway.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 22 21:17:24 UTC 2024 - 6.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt
import okhttp3.internal.okHttpName /** * A set of tasks that are executed in sequential order. * * Work within queues is not concurrent. This is equivalent to each queue having a dedicated thread * for its work; in practice a set of queues may share a set of threads to save resources. */ class TaskQueue internal constructor( internal val taskRunner: TaskRunner, internal val name: String, ) { val lock: ReentrantLock = ReentrantLock()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.5K bytes - Viewed (0)