Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of about 10,000 for returns_ (0.13 sec)

  1. src/cmd/vendor/golang.org/x/sync/errgroup/errgroup.go

    		<-g.sem
    	}
    	g.wg.Done()
    }
    
    // WithContext returns a new Group and an associated Context derived from ctx.
    //
    // The derived Context is canceled the first time a function passed to Go
    // returns a non-nil error or the first time Wait returns, whichever occurs
    // first.
    func WithContext(ctx context.Context) (*Group, context.Context) {
    	ctx, cancel := withCancelCause(ctx)
    	return &Group{cancel: cancel}, ctx
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/file/FileOrUriNotationConverterTest.groovy

        def "with File returns this File"() {
            setup:
            def testFile = folder.createFile("test1")
            when:
            def object = parse(testFile)
            then:
            object instanceof File
            testFile == object
        }
    
        def "with Path returns the File it represents"() {
            setup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 16:59:26 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. src/io/fs/walk.go

    //
    // The error result returned by the function controls how [WalkDir]
    // continues. If the function returns the special value [SkipDir], WalkDir
    // skips the current directory (path if d.IsDir() is true, otherwise
    // path's parent directory). If the function returns the special value
    // [SkipAll], WalkDir skips all remaining files and directories. Otherwise,
    // if the function returns a non-nil error, WalkDir stops entirely and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 08:50:19 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. pkg/controller/nodelifecycle/scheduler/rate_limited_queue.go

    			heap.Remove(&q.queue, i)
    			return true
    		}
    	}
    	return true
    }
    
    // Get returns the oldest added value that wasn't returned yet.
    func (q *UniqueQueue) Get() (TimedValue, bool) {
    	q.lock.Lock()
    	defer q.lock.Unlock()
    	if len(q.queue) == 0 {
    		return TimedValue{}, false
    	}
    	result := heap.Pop(&q.queue).(*TimedValue)
    	q.set.Delete(result.Value)
    	return *result, true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 07:50:01 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  5. platforms/software/resources/src/main/java/org/gradle/internal/resource/TextResource.java

        File getFile();
    
        /**
         * Returns the charset use to encode the file containing the resource's content, as returned by {@link #getFile()}.
         *
         * @return The charset. Returns null when this resource is not available as a file.
         */
        @Nullable
        Charset getCharset();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/resource/query_param_verifier_v3.go

    		if err != nil {
    			// If error retrieving Namespace spec, propagate error.
    			return err
    		}
    		return supportsQueryParamV3(namespaceSpec, namespaceGVK, v.queryParam)
    	}
    	return NewParamUnsupportedError(gvk, v.queryParam)
    }
    
    // hasGVKExtensionV3 returns true if the passed OpenAPI extensions map contains
    // the passed GVK; false otherwise.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 01:23:27 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

      void runOnOperation() override;
    };
    
    // Finds op that created a given value. If the value is a BlockArgument, this
    // returns the owner of the Block.
    Operation* GetOpOfValue(Value value) {
      if (auto block_arg = mlir::dyn_cast<BlockArgument>(value))
        return block_arg.getOwner()->getParentOp();
    
      return value.getDefiningOp();
    }
    
    void TPUAnnotateDynamicShapeInputsPass::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. pkg/kubelet/util/ioutils/ioutils.go

    type LimitedWriter struct {
    	W io.Writer // underlying writer
    	N int64     // max bytes remaining
    }
    
    func (l *LimitedWriter) Write(p []byte) (n int, err error) {
    	if l.N <= 0 {
    		return 0, io.ErrShortWrite
    	}
    	truncated := false
    	if int64(len(p)) > l.N {
    		p = p[0:l.N]
    		truncated = true
    	}
    	n, err = l.W.Write(p)
    	l.N -= int64(n)
    	if err == nil && truncated {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 12:00:49 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/io.h

    // of `tsl::Env` and returns its path. Returns an InternalError status if
    // failed.
    absl::StatusOr<std::string> CreateTmpDir(tsl::Env* env);
    
    // Creates a temporary directory and returns its path. Returns an InternalError
    // status if failed. The file system used will be the default environment
    // returned by `tsl::Env::Default`.
    absl::StatusOr<std::string> CreateTmpDir();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

      /**
       * Helper method to create an array of the appropriate type used by this generator. The returned
       * array will contain only nulls.
       */
      E[] createArray(int length);
    
      /**
       * Returns the iteration ordering of elements, given the order in which they were added to the
       * container. This method may return the original list unchanged, the original list modified in
       * place, or a different list.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top