Search Options

Results per page
Sort
Preferred Languages
Advance

Results 671 - 680 of 1,494 for case1 (0.04 sec)

  1. internal/cachevalue/cache_test.go

    package cachevalue
    
    import (
    	"context"
    	"errors"
    	"testing"
    	"time"
    )
    
    func slowCaller(ctx context.Context) error {
    	sl := time.NewTimer(time.Second)
    	defer sl.Stop()
    
    	select {
    	case <-sl.C:
    	case <-ctx.Done():
    		return ctx.Err()
    	}
    
    	return nil
    }
    
    func TestCacheCtx(t *testing.T) {
    	cache := New[time.Time]()
    	t.Parallel()
    	cache.InitOnce(2*time.Second, Opts{},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

    final class ImmutableEnumMap<K extends Enum<K>, V> extends IteratorBasedImmutableMap<K, V> {
      static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) {
        switch (map.size()) {
          case 0:
            return ImmutableMap.of();
          case 1:
            Entry<K, V> entry = getOnlyElement(map.entrySet());
            return ImmutableMap.of(entry.getKey(), entry.getValue());
          default:
            return new ImmutableEnumMap<>(map);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java

            String[] parts = coords.split(":");
            switch (parts.length) {
                case 3:
                    s = new DefaultArtifact(parts[0], parts[1], "*", "*", parts[2]);
                    break;
                case 4:
                    s = new DefaultArtifact(parts[0], parts[1], "*", parts[2], parts[3]);
                    break;
                case 5:
                    s = new DefaultArtifact(parts[0], parts[1], parts[2], parts[3], parts[4]);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

            switch (getFormatType(request)) {
            case SEARCH:
                processSearchRequest(request, response, chain);
                break;
            case LABEL:
                processLabelRequest(request, response, chain);
                break;
            case POPULARWORD:
                processPopularWordRequest(request, response, chain);
                break;
            case FAVORITE:
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/DependencyScope.java

         * whether the DependencyCoordinates is used in dependency management, in which case it means the scope is not
         * explicitly managed by this managed dependency, or as a real dependency, in which case, the scope
         * will default to {@link #COMPILE}.
         */
        UNDEFINED("", false),
    
        /**
         * Compile only.
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. internal/bpool/bpool.go

    	}
    }
    
    // Get gets a []byte from the BytePool, or creates a new one if none are
    // available in the pool.
    func (bp *BytePoolCap) Get() (b []byte) {
    	if bp == nil {
    		return nil
    	}
    	select {
    	case b = <-bp.c:
    		// reuse existing buffer
    	default:
    		// create new aligned buffer
    		b = reedsolomon.AllocAligned(1, bp.wcap)[0][:bp.w]
    	}
    	return
    }
    
    // Put returns the given Buffer to the BytePool.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. cmd/os_unix.go

    	}
    	consumed = int(dirent.Reclen)
    	if direntInode(dirent) == 0 { // File absent in directory.
    		return
    	}
    	switch dirent.Type {
    	case syscall.DT_REG:
    		typ = 0
    	case syscall.DT_DIR:
    		typ = os.ModeDir
    	case syscall.DT_LNK:
    		typ = os.ModeSymlink
    	default:
    		// Skip all other file types. Revisit if/when this code needs
    		// to handle such files, MinIO is only interested in
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. cmd/handler-utils.go

    		}, r.URL)
    	case strings.HasPrefix(r.URL.Path, adminPathPrefix):
    		var desc string
    		version := extractAPIVersion(r)
    		switch version {
    		case "v1", madmin.AdminAPIVersionV2:
    			desc = fmt.Sprintf("Server expects client requests with 'admin' API version '%s', found '%s', please upgrade the client to latest releases", madmin.AdminAPIVersion, version)
    		case madmin.AdminAPIVersion:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  9. internal/event/target/elasticsearch.go

    		return err
    	}
    
    	switch serverSupportStatus {
    	case ESSUnknown:
    		return errors.New("unable to determine support status of ES (should not happen)")
    
    	case ESSDeprecated:
    		return errors.New("there is no currently deprecated version of ES in MinIO")
    
    	case ESSSupported:
    		target.client = clientV7
    
    	default:
    		// ESSUnsupported case
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 15K bytes
    - Viewed (0)
  10. internal/s3select/csv/reader.go

    		for {
    			q := queueItem{
    				input: next,
    				dst:   make(chan [][]string, 1),
    				err:   nextErr,
    			}
    			select {
    			case <-r.close:
    				return
    			case r.queue <- &q:
    			}
    
    			select {
    			case <-r.close:
    				return
    			case r.input <- &q:
    			}
    			if nextErr != nil {
    				// Exit on any error.
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top