Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 853 for read1 (0.08 sec)

  1. internal/ringbuffer/README.md

    Regular Reads will block until data is available, but not wait for a full buffer. 
    Writes will block until there is space available and writes bigger than the buffer will wait for reads to make space.
    
    `TryRead` and `TryWrite` are still available for non-blocking reads and writes.
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/impl/FileSystemSnapshotSerializerTest.groovy

        @Override
        Class<? extends AbstractEncoder> getEncoder() {
            return super.getEncoder()
        }
    
        def "reads and writes empty snapshots"() {
            when:
            def out = serialize(EMPTY, serializer)
    
            then:
            out == EMPTY
        }
    
        def "reads and writes file snapshots"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/ready_test.go

    		t.Errorf("unexpected ready state %v", ready.check())
    	}
    	// stop sets ready to false
    	ready.stop()
    	if ready.check() {
    		t.Errorf("unexpected ready state %v", ready.check())
    	}
    	// can not set to true if is stopped
    	ready.set(true)
    	if ready.check() {
    		t.Errorf("unexpected ready state %v", ready.check())
    	}
    	err := ready.wait(context.Background())
    	if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 16 13:32:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. cluster/gce/upgrade.sh

      done
    
      # Wait for the node to have Ready=True.
      echo "== Waiting for ${instance} to become ready. ==" >&2
      while true; do
        local ready
        ready=$("${KUBE_ROOT}/cluster/kubectl.sh" get node "${instance}" --output='jsonpath={.status.conditions[?(@.type == "Ready")].status}')
        if [[ "${ready}" != 'True' ]]; then
          echo "Node ${instance} is still not ready: Ready=${ready}"
        else
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 21:13:22 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  5. internal/ioutil/read_file.go

    	_, err = io.ReadFull(f, dst)
    	return dst, st, err
    }
    
    // ReadFile reads the named file and returns the contents.
    // A successful call returns err == nil, not err == EOF.
    // Because ReadFile reads the whole file, it does not treat an EOF from Read
    // as an error to be reported.
    //
    // passes NOATIME flag for reads on Unix systems to avoid atime updates.
    func ReadFile(name string) ([]byte, error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 09 18:17:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. pkg/channels/unbounded_test.go

    			r := <-ch
    			reads = append(reads, r)
    			ub.Load()
    		}
    	}()
    
    	wg.Add(numWriters)
    	for i := 0; i < numWriters; i++ {
    		go func(index int) {
    			defer wg.Done()
    			for j := 0; j < numWrites; j++ {
    				ub.Put(index)
    			}
    		}(i)
    	}
    
    	wg.Wait()
    	sort.Ints(reads)
    	if !reflect.DeepEqual(reads, wantReads) {
    		t.Errorf("reads: %#v, wantReads: %#v", reads, wantReads)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 31 19:53:39 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

        return (int) in.skip(n);
      }
    
      @CanIgnoreReturnValue // to skip a byte
      @Override
      public int readUnsignedByte() throws IOException {
        int b1 = in.read();
        if (0 > b1) {
          throw new EOFException();
        }
    
        return b1;
      }
    
      /**
       * Reads an unsigned {@code short} as specified by {@link DataInputStream#readUnsignedShort()},
       * except using little-endian byte order.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top