Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,140 for Take (0.03 sec)

  1. docs/en/docs/tutorial/security/get-current-user.md

    The security and dependency injection stuff is written once.
    
    And you can make it as complex as you want. And still, have it written only once, in a single place. With all the flexibility.
    
    But you can have thousands of endpoints (*path operations*) using the same security system.
    
    And all of them (or any portion of them that you want) can take advantage of re-using these dependencies or any other dependencies you create.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  2. generics.go

    	return err
    }
    
    func (g execG[T]) Last(ctx context.Context) (T, error) {
    	var r T
    	err := g.g.apply(ctx).Last(&r).Error
    	return r, err
    }
    
    func (g execG[T]) Take(ctx context.Context) (T, error) {
    	var r T
    	err := g.g.apply(ctx).Take(&r).Error
    	return r, err
    }
    
    func (g execG[T]) Find(ctx context.Context) ([]T, error) {
    	var r []T
    	err := g.g.apply(ctx).Find(&r).Error
    	return r, err
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/testing-dependencies.md

    An example could be that you have an external authentication provider that you need to call.
    
    You send it a token and it returns an authenticated user.
    
    This provider might be charging you per request, and calling it might take some extra time than if you had a fixed mock user for tests.
    
    You probably want to test the external provider once, but not necessarily call it for every test that runs.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. cmd/erasure-encode.go

    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
    		n, err := io.ReadFull(src, buf)
    		if err != nil {
    			if !IsErrIgnored(err, []error{
    				io.EOF,
    				io.ErrUnexpectedEOF,
    			}...) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

          }
        }
      }
    
      /** Invokes {@code queue.}{@link BlockingQueue#take() take()} uninterruptibly. */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      public static <E> E takeUninterruptibly(BlockingQueue<E> queue) {
        boolean interrupted = false;
        try {
          while (true) {
            try {
              return queue.take();
            } catch (InterruptedException e) {
              interrupted = true;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        }
      }
    
      /** Manages a {@link BlockingQueue} and associated timings for a {@code take} call. */
      private static final class TimedTakeQueue {
        final BlockingQueue<String> queue;
        final Completion completed;
    
        /**
         * Creates a {@link EnableReads} which insert an element for a {@code take} to receive in {@code
         * countdownInMillis}.
         */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  7. SECURITY.md

       Please inform us in your report email whether MinIO should mention your contribution w.r.t. fixing
       the security issue. By default MinIO will **not** publish this information to protect your privacy.
    
    This process can take some time, especially when coordination is required with maintainers of other projects.
    Every effort will be made to handle the bug in as timely a manner as possible, however it's important that we
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Feb 12 00:51:25 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  8. cmd/global-heal.go

    			HealSettings: hs,
    		},
    		cancelCtx:          cancelCtx,
    		ctx:                ctx,
    		reportProgress:     false,
    		scannedItemsMap:    make(map[madmin.HealItemType]int64),
    		healedItemsMap:     make(map[madmin.HealItemType]int64),
    		healFailedItemsMap: make(map[madmin.HealItemType]int64),
    	}
    }
    
    // getLocalBackgroundHealStatus will return the heal status of the local node
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 04 13:49:12 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    on:  `But why did they live at the bottom of a well?'
    
      `Take some more tea,' the March Hare said to Alice, very
    earnestly.
    
      `I've had nothing yet,' Alice replied in an offended tone, `so
    I can't take more.'
    
      `You mean you can't take LESS,' said the Hatter:  `it's very
    easy to take MORE than nothing.'
    
      `Nobody asked YOUR opinion,' said Alice.
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 145.2K bytes
    - Viewed (0)
  10. cmd/callhome.go

    			duration := max(time.Duration(r.Float64()*float64(globalCallhomeConfig.FrequencyDur())),
    				// Make sure to sleep at least a second to avoid high CPU ticks.
    				time.Second)
    			time.Sleep(duration)
    		}
    	}()
    }
    
    func runCallhome(ctx context.Context, objAPI ObjectLayer) bool {
    	// Make sure only 1 callhome is running on the cluster.
    	locker := objAPI.NewNSLock(minioMetaBucket, "callhome/runCallhome.lock")
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top