Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 923 for read1 (0.04 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/stream_test.go

    		if !bytes.HasPrefix([]byte(input), data) && len(data) != 0 {
    			t.Fatalf("unexpected server read: %q", string(data))
    		}
    	}
    }
    
    type errorReader struct {
    	reads        [][]byte
    	err          error
    	panicMessage string
    	pause        chan struct{}
    }
    
    func (r *errorReader) Read(p []byte) (int, error) {
    	if len(r.reads) == 0 {
    		if r.pause != nil {
    			<-r.pause
    		}
    		if len(r.panicMessage) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/resource_operation_safety_analysis_test.cc

      Node* read_0 = MakeRead(root, "R0");
      Node* read_1 = MakeRead(root, "R1");
    
      root.graph()->AddControlEdge(write_0, neutral);
      root.graph()->AddControlEdge(write_1, neutral);
      root.graph()->AddControlEdge(neutral, read_0);
      root.graph()->AddControlEdge(neutral, read_1);
      root.graph()->AddControlEdge(write_1, read_1);
    
      std::vector<std::pair<int, int>> incompatible_pairs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 28 16:53:59 UTC 2020
    - 18.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/handler_test.go

    	if !handler.WaitForReady() {
    		t.Errorf("Expect ready for no readyFunc provided.")
    	}
    
    	// 2. readyFunc return ready immediately
    	readyFunc := func() bool {
    		return true
    	}
    	handler.SetReadyFunc(readyFunc)
    	if !handler.WaitForReady() {
    		t.Errorf("Expect ready for readyFunc returns ready immediately.")
    	}
    
    	// 3. readyFunc always return not ready. WaitForReady timeout
    	readyFunc = func() bool {
    		return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 08:47:19 UTC 2017
    - 1.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/telemetry/counter/countertest/countertest.go

    	counter.Open()
    	opened = true
    }
    
    // ReadCounter reads the given counter.
    func ReadCounter(c *counter.Counter) (count uint64, _ error) {
    	return ic.Read(c)
    }
    
    // ReadStackCounter reads the given StackCounter.
    func ReadStackCounter(c *counter.StackCounter) (stackCounts map[string]uint64, _ error) {
    	return ic.ReadStack(c)
    }
    
    // ReadFile reads the counters and stack counters from the given file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:13:09 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/locking/LockFileReaderWriterTest.groovy

            then:
            testLockFile.text == """${LockFileReaderWriter.LOCKFILE_HEADER_LIST.join('\n')}
    bar=a
    foo=a,b
    empty=c
    """.denormalize()
            !lockDir.exists()
        }
    
        def 'reads a legacy lock file'() {
            given:
            def lockFile = lockDir.file('conf.lockfile')
            lockFile << """#Ignored
    line1
    
    line2"""
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. maven-model-builder/src/main/java/org/apache/maven/model/io/ModelReader.java

         * @throws ModelParseException If the input format could not be parsed.
         * @deprecated Use {@link #read(Path, Map)} instead.
         */
        @Deprecated
        Model read(File input, Map<String, ?> options) throws IOException, ModelParseException;
    
        /**
         * Reads the model from the specified file.
         *
         * @param input The file to deserialize the model from, must not be {@code null}.
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Feb 26 17:04:44 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. cluster/validate-cluster.sh

        fi
        break
      elif (( "${ready}" > "${EXPECTED_NUM_NODES}")); then
        echo -e "${color_red}Found ${ready} ready nodes, but expected ${EXPECTED_NUM_NODES}. Your cluster may not behave correctly.${color_norm}"
        break
      else
        if [[ "${REQUIRED_NUM_NODES}" -le "${ready}" ]]; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 01 06:35:39 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  8. pkg/api/v1/endpoints/util.go

    	}
    	// if we have not yet recorded this port for this address, or if the previous
    	// state was ready, write the current ready state. not ready always trumps
    	// ready.
    	if wasReady, found := portToAddrReadyMap[port][existingAddress]; !found || wasReady {
    		portToAddrReadyMap[port][existingAddress] = ready
    	}
    	return existingAddress
    }
    
    type addressSet map[*v1.EndpointAddress]bool
    
    type addrReady struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 07 07:01:25 UTC 2018
    - 8K bytes
    - Viewed (0)
  9. cmd/local-locker_gen.go

    				return
    			}
    		case "Writes":
    			z.Writes, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "Writes")
    				return
    			}
    		case "Reads":
    			z.Reads, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "Reads")
    				return
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	return
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Serializer.java

    public interface Serializer<T> {
        /**
         * Reads the next object from the given stream. The implementation must not perform any buffering, so that it reads only those bytes from the input stream that are
         * required to deserialize the next object.
         *
         * @throws EOFException When the next object cannot be fully read due to reaching the end of stream.
         */
        T read(Decoder decoder) throws EOFException, Exception;
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top