Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for function (0.18 sec)

  1. cmd/metrics-v3.go

    		systemGoCollectorPath: collectors.NewGoCollector(),
    	}
    
    	// Add all `MetricGroup` collectors to the map.
    	for _, mg := range allMetricGroups {
    		collectors[mg.CollectorPath] = mg
    	}
    
    	// Helper function to register a collector and return a gatherer for it.
    	mustRegister := func(c ...prometheus.Collector) prometheus.Gatherer {
    		subRegistry := prometheus.NewRegistry()
    		for _, col := range c {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 16:07:23 GMT 2024
    - 10K bytes
    - Viewed (0)
  2. build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java

    import java.time.LocalDateTime;
    import java.time.format.DateTimeFormatter;
    import java.util.Arrays;
    import java.util.List;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.TimeUnit;
    import java.util.function.BiConsumer;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    import java.util.stream.Collectors;
    import java.util.stream.Stream;
    
    import static java.util.regex.Pattern.quote;
    
    /**
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 26 09:46:00 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  3. cmd/xl-storage.go

    			return nil, err
    		}
    	}
    
    	return &sendFileReader{Reader: io.LimitReader(file, length), Closer: file}, nil
    }
    
    // closeWrapper converts a function to an io.Closer
    type closeWrapper func() error
    
    // Close calls the wrapped function.
    func (c closeWrapper) Close() error {
    	return c()
    }
    
    // CreateFile - creates the file.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  4. cmd/erasure.go

    // NewNSLock - initialize a new namespace RWLocker instance.
    func (er erasureObjects) NewNSLock(bucket string, objects ...string) RWLocker {
    	return er.nsMutex.NewNSLock(er.getLockers, bucket, objects...)
    }
    
    // Shutdown function for object storage interface.
    func (er erasureObjects) Shutdown(ctx context.Context) error {
    	// Add any object layer shutdown activities here.
    	closeStorageDisks(er.getDisks()...)
    	return nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  5. cmd/erasure-object.go

    	}
    
    	pr, pw := xioutil.WaitPipe()
    	go func() {
    		pw.CloseWithError(er.getObjectWithFileInfo(ctx, bucket, object, off, length, pw, fi, metaArr, onlineDisks))
    	}()
    
    	// Cleanup function to cause the go routine above to exit, in
    	// case of incomplete read.
    	pipeCloser := func() {
    		pr.CloseWithError(nil)
    	}
    
    	if !unlockOnDefer {
    		return fn(pr, h, pipeCloser, nsUnlocker)
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 76.9K bytes
    - Viewed (2)
  6. cmd/erasure-server-pool.go

    		return gr.WithCleanupFuncs(nsUnlocker), nil
    	}
    	return gr, nil
    }
    
    // getLatestObjectInfoWithIdx returns the objectInfo of the latest object from multiple pools (this function
    // is present in-case there were duplicate writes to both pools, this function also returns the
    // additional index where the latest object exists, that is used to start the GetObject stream.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
  7. docs/en/docs/release-notes.md

    * Add note in [Response Model docs](https://fastapi.tiangolo.com/tutorial/response-model/) about why using a function parameter instead of a function return type annotation. PR [#109](https://github.com/tiangolo/fastapi/pull/109) by [@JHSaunders](https://github.com/JHSaunders).
    
    * Fix event docs (startup/shutdown) function name. PR [#105](https://github.com/tiangolo/fastapi/pull/105) by [@stratosgear](https://github.com/stratosgear).
    
    ## 0.10.2
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Apr 28 00:28:00 GMT 2024
    - 385.5K bytes
    - Viewed (1)
  8. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/RepositorySystemSupplier.java

    package org.apache.maven.internal.impl.standalone;
    
    import java.util.HashMap;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.concurrent.atomic.AtomicBoolean;
    import java.util.function.Supplier;
    
    import org.apache.maven.api.services.ModelBuilder;
    import org.apache.maven.internal.impl.DefaultModelUrlNormalizer;
    import org.apache.maven.internal.impl.DefaultModelVersionParser;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 26 13:10:42 GMT 2024
    - 43.7K bytes
    - Viewed (0)
  9. cmd/object-api-errors.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"io"
    )
    
    // Converts underlying storage error. Convenience function written to
    // handle all cases where we have known types of errors returned by
    // underlying storage layer.
    func toObjectErr(oerr error, params ...string) error {
    	if oerr == nil {
    		return nil
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  10. cmd/iam-store.go

    			gset = set.CreateStringSet(group)
    		} else {
    			gset.Add(group)
    		}
    		cache.iamUserGroupMemberships[member] = gset
    	}
    
    	cache.updatedAt = time.Now()
    	return gi.UpdatedAt, nil
    }
    
    // helper function - does not take any locks. Updates only cache if
    // updateCacheOnly is set.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
Back to top