- Sort Score
- Num 10 results
- Language All
Results 451 - 460 of 637 for readTo (0.07 seconds)
-
internal/cachevalue/cache.go
// `.TnitOnce`. func New[T any]() *Cache[T] { return &Cache[T]{} } // NewFromFunc allocates a new cached value instance and initializes it with an // update function, making it ready for use. func NewFromFunc[T any](ttl time.Duration, opts Opts, update func(ctx context.Context) (T, error)) *Cache[T] { return &Cache[T]{ ttl: ttl, updateFn: update, opts: opts, } }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 24 12:50:46 GMT 2024 - 4.4K bytes - Click Count (0) -
cmd/os_other.go
d, err := Open(dirPath) if err != nil { if osErrToFileErr(err) == errFileNotFound { return nil } return osErrToFileErr(err) } defer d.Close() maxEntries := 1000 for { // Read up to max number of entries. fis, err := d.Readdir(maxEntries) if err != nil { if err == io.EOF { break } err = osErrToFileErr(err) if err == errFileNotFound { return nil }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Sep 13 15:14:36 GMT 2023 - 4K bytes - Click Count (0) -
.github/workflows/go.yml
# This ensures that previous jobs for the PR are canceled when the PR is # updated. concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} cancel-in-progress: true permissions: contents: read jobs: build: name: Go ${{ matrix.go-version }} on ${{ matrix.os }} - healing runs-on: ${{ matrix.os }} strategy: matrix: go-version: [1.24.x] os: [ubuntu-latest]Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 1.1K bytes - Click Count (0) -
cmd/storage-errors.go
return errFileNotFound } if isSysErrIO(err) { return errFaultyDisk } if isSysErrInvalidArg(err) { storageLogIf(context.Background(), err) // For some odd calls with O_DIRECT reads // filesystems can return EINVAL, handle // these as FileNotFound instead. return errFileNotFound } if isSysErrNoSpace(err) { return errDiskFull } return err
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 6.4K bytes - Click Count (0) -
internal/s3select/simdj/reader_amd64_test.go
} } refDec := json.NewReader(io.NopCloser(bytes.NewBuffer(ref)), &json.ReaderArgs{ContentType: "json"}) for { rec, err := dec.Read(nil) if err == io.EOF { break } if err != nil { t.Error(err) } want, err := refDec.Read(nil) if err != nil { t.Error(err) } var gotB, wantB bytes.Buffer opts := sql.WriteCSVOpts{ FieldDelimiter: ',',
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 3.9K bytes - Click Count (0) -
.github/workflows/vulncheck.yml
name: VulnCheck on: pull_request: branches: - master push: branches: - master permissions: contents: read # to fetch code (actions/checkout) jobs: vulncheck: name: Analysis runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with:Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Apr 24 23:34:11 GMT 2025 - 682 bytes - Click Count (0) -
ci/official/containers/ml_build/builder.devtoolset/rpm-patch.sh
# limitations under the License. # ============================================================================== # # Given an RPM spec file $1, apply its patches. SPEC="$1" grep '%patch' "${SPEC}" |while read cmd ; do N=$(echo "${cmd}" |sed 's,%patch\([0-9]\+\).*,\1,') file=$(grep "Patch$N:" "${SPEC}" |sed 's,.*: ,,') parg=$(echo "${cmd}" |sed 's,.*\(-p[0-9]\).*,\1,') if [[ ! "${file}" =~ doxygen && "${cmd}" != \#* ]]; thenCreated: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Tue Sep 24 20:45:58 GMT 2024 - 1.1K bytes - Click Count (0) -
.github/CODE_OF_CONDUCT.md
# Code of Conduct
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Nov 13 16:48:04 GMT 2017 - 95 bytes - Click Count (0) -
.github/workflows/cffconvert.yml
# limitations under the License. # ============================================================================== name: cffconvert on: push: paths: - CITATION.cff permissions: contents: read jobs: validate: if: github.repository == 'tensorflow/tensorflow' # Don't do this in forks name: "validate" runs-on: ubuntu-latest steps: - name: Check out a copy of the repositoryCreated: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Mon Dec 01 09:57:00 GMT 2025 - 1.3K bytes - Click Count (0) -
cmd/admin-handlers_test.go
} // Add a few concurrent read locks to the mix for i := range 50 { resource := fmt.Sprintf("bucket/get-object-%d", i) lri := lockRequesterInfo{ Name: resource, UID: mustGetUUID(), Owner: owners[i%len(owners)], Quorum: 2, } lris = append(lris, lri) locksHeld[resource] = append(locksHeld[resource], lri) // concurrent read lock, same resource different uidCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 13.9K bytes - Click Count (1)