Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 283 for waiters (0.48 sec)

  1. cmd/erasure-encode.go

    }
    
    // Encode reads from the reader, erasure-encodes the data and writes to the writers.
    func (e *Erasure) Encode(ctx context.Context, src io.Reader, writers []io.Writer, buf []byte, quorum int) (total int64, err error) {
    	writer := &multiWriter{
    		writers:     writers,
    		writeQuorum: quorum,
    		errs:        make([]error, len(writers)),
    	}
    
    	for {
    		var blocks [][]byte
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. src/io/multi.go

    }
    
    // MultiWriter creates a writer that duplicates its writes to all the
    // provided writers, similar to the Unix tee(1) command.
    //
    // Each write is written to each listed writer, one at a time.
    // If a listed writer returns an error, that overall write operation
    // stops and returns the error; it does not continue down the list.
    func MultiWriter(writers ...Writer) Writer {
    	allWriters := make([]Writer, 0, len(writers))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. src/runtime/proc.go

    	// "locked" sentinel value. M's on this list remain visible to the GC
    	// because their mp.curg is on allgs.
    	extraM atomic.Uintptr
    	// Number of M's in the extraM list.
    	extraMLength atomic.Uint32
    	// Number of waiters in lockextra.
    	extraMWaiters atomic.Uint32
    
    	// Number of extra M's in use by threads.
    	extraMInUse atomic.Uint32
    )
    
    // lockextra locks the extra list and returns the list head.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  4. cmd/erasure-encode_test.go

    			}
    			writers := make([]io.Writer, len(disks))
    			for i, disk := range disks {
    				if disk == nil {
    					continue
    				}
    				writers[i] = newBitrotWriter(disk, "", "testbucket", "object2", erasure.ShardFileSize(int64(len(data[test.offset:]))), test.algorithm, erasure.ShardSize())
    			}
    			for j := range disks[:test.offDisks] {
    				switch w := writers[j].(type) {
    				case *wholeBitrotWriter:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/dryrun/dryrun.go

    	}
    	return errorsutil.NewAggregate(errs)
    }
    
    // Waiter is an implementation of apiclient.Waiter that should be used for dry-running
    type Waiter struct{}
    
    // NewWaiter returns a new Waiter object that talks to the given Kubernetes cluster
    func NewWaiter() apiclient.Waiter {
    	return &Waiter{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. cmd/erasure-decode_test.go

    		writers := make([]io.Writer, len(disks))
    		for i, disk := range disks {
    			writers[i] = newBitrotWriter(disk, "", "testbucket", "object", erasure.ShardFileSize(test.data), writeAlgorithm, erasure.ShardSize())
    		}
    		n, err := erasure.Encode(context.Background(), bytes.NewReader(data), writers, buffer, erasure.dataBlocks+1)
    		closeBitrotWriters(writers)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/phases/join/waitcontrolplane.go

    		return nil
    	}
    
    	waiter, err := newControlPlaneWaiter(data.DryRun(), 0, nil, data.OutputWriter())
    	if err != nil {
    		return errors.Wrap(err, "error creating waiter")
    	}
    
    	waiter.SetTimeout(data.Cfg().Timeouts.ControlPlaneComponentHealthCheck.Duration)
    	if err := waiter.WaitForControlPlaneComponents(&initCfg.ClusterConfiguration); err != nil {
    		return err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 15:33:38 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      final TestCloseable closeable2 = new TestCloseable("closeable2");
      final TestCloseable closeable3 = new TestCloseable("closeable3");
      final TestCloseable closeable4 = new TestCloseable("closeable4");
    
      final Waiter waiter = new Waiter();
      final CountDownLatch futureCancelled = new CountDownLatch(1);
      final Exception exception = new Exception();
      final Closeable mockCloseable = Mockito.mock(Closeable.class);
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      final TestCloseable closeable2 = new TestCloseable("closeable2");
      final TestCloseable closeable3 = new TestCloseable("closeable3");
      final TestCloseable closeable4 = new TestCloseable("closeable4");
    
      final Waiter waiter = new Waiter();
      final CountDownLatch futureCancelled = new CountDownLatch(1);
      final Exception exception = new Exception();
      final Closeable mockCloseable = Mockito.mock(Closeable.class);
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  10. cmd/erasure-decode.go

    }
    
    // Decode reads from readers, reconstructs data if needed and writes the data to the writer.
    // A set of preferred drives can be supplied. In that case they will be used and the data reconstructed.
    func (e Erasure) Decode(ctx context.Context, writer io.Writer, readers []io.ReaderAt, offset, length, totalLength int64, prefer []bool) (written int64, derr error) {
    	if offset < 0 || length < 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 21 14:36:21 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top