Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 144 for idempotent (0.15 sec)

  1. pkg/kubelet/cm/dra/manager.go

    	}
    
    	return &ContainerInfo{Annotations: annotations, CDIDevices: cdiDevices}, nil
    }
    
    // UnprepareResources calls a plugin's NodeUnprepareResource API for each resource claim owned by a pod.
    // This function is idempotent and may be called multiple times against the same pod.
    // As such, calls to the underlying NodeUnprepareResource API are skipped for claims that have
    // already been successfully unprepared.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:23:29 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

            // 408's are rare in practice, but some servers like HAProxy use this response code. The
            // spec says that we may repeat the request without modifications. Modern browsers also
            // repeat the request (even non-idempotent ones.)
            if (!client.retryOnConnectionFailure) {
              // The application layer has directed us not to retry the request.
              return null
            }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. pkg/registry/flowcontrol/rest/storage_flowcontrol.go

    		// the caller can explicitly cancel the context which is an
    		// indication to us to exit the goroutine immediately.
    		// Note that we are calling cancel more than once when we are here,
    		// CancelFunc is idempotent and we expect no ripple effects here.
    		case <-ctx.Done():
    		}
    	}()
    	return ctx, cancel
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

        assertThat(partEfg.headers).isEqualTo(headersOf("Content-ID", "efg"))
        assertThat(partEfg.body.readUtf8()).isEqualTo("efgh")
    
        assertThat(parts.nextPart()).isNull()
      }
    
      @Test fun `no more parts is idempotent`() {
        val multipart =
          """
          |--simple boundary
          |
          |abcd
          |--simple boundary--
          |
          |efgh
          |--simple boundary--
          """.trimMargin()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. internal/s3select/sql/parser.go

    	ObjectWildcard bool       `parser:"| @\".*\""`          // .* form
    	ArrayWildcard  bool       `parser:"| @\"[*]\""`         // [*] form
    }
    
    // JSONPath represents a keypath.
    // Instances should be treated idempotent and not change once created.
    type JSONPath struct {
    	BaseKey  *Identifier        `parser:" @@"`
    	PathExpr []*JSONPathElement `parser:"(@@)*"`
    
    	// Cached values:
    	pathString         string
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go

    		}
    		time := Time{}
    		if err := time.Unmarshal(data); err != nil {
    			t.Fatalf("Failed to unmarshal output: '%v': %v", input, err)
    		}
    		if !reflect.DeepEqual(input, time) {
    			t.Errorf("Marshal->Unmarshal is not idempotent: '%v' vs '%v'", input, time)
    		}
    	}
    }
    
    func TestTimeEqual(t *testing.T) {
    	t1 := NewTime(time.Now())
    	cases := []struct {
    		name   string
    		x      *Time
    		y      *Time
    		result bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. src/net/http/fcgi/child.go

    	}
    }
    
    func (c *child) cleanUp() {
    	for _, req := range c.requests {
    		if req.pw != nil {
    			// race with call to Close in c.serveRequest doesn't matter because
    			// Pipe(Reader|Writer).Close are idempotent
    			req.pw.CloseWithError(ErrConnClosed)
    		}
    	}
    }
    
    // Serve accepts incoming FastCGI connections on the listener l, creating a new
    // goroutine for each. The goroutine reads requests and then calls handler
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. src/runtime/pinner.go

    			// resilient to an empty pinner being finalized, which is done
    			// by checking p.refs' length.
    			SetFinalizer(p.pinner, func(i *pinner) {
    				if len(i.refs) != 0 {
    					i.unpin() // only required to make the test idempotent
    					pinnerLeakPanic()
    				}
    			})
    		}
    	}
    	ptr := pinnerGetPtr(&pointer)
    	if setPinned(ptr, true) {
    		p.refs = append(p.refs, ptr)
    	}
    }
    
    // Unpin unpins all pinned objects of the [Pinner].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/cmd/go/main.go

    	telemetry.Start() // Open the telemetry counter file so counters can be written to it.
    	handleChdirFlag()
    	toolchain.Select()
    
    	telemetry.StartWithUpload() // Run the upload process. Opening the counter file is idempotent.
    	flag.Usage = base.Usage
    	flag.Parse()
    	telemetry.Inc("go/invocations")
    	telemetry.CountFlags("go/flag:", *flag.CommandLine)
    
    	args := flag.Args()
    	if len(args) < 1 {
    		base.Usage()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Range.java

       *
       * <p>The intersection exists if and only if the two ranges are {@linkplain #isConnected
       * connected}.
       *
       * <p>The intersection operation is commutative, associative and idempotent, and its identity
       * element is {@link Range#all}).
       *
       * @throws IllegalArgumentException if {@code isConnected(connectedRange)} is {@code false}
       */
      public Range<C> intersection(Range<C> connectedRange) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top