- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for isEphemeralError (0.31 sec)
-
src/cmd/go/internal/robustio/robustio_darwin.go
// license that can be found in the LICENSE file. package robustio import ( "errors" "syscall" ) const errFileNotFound = syscall.ENOENT // isEphemeralError returns true if err may be resolved by waiting. func isEphemeralError(err error) bool { var errno syscall.Errno if errors.As(err, &errno) { return errno == errFileNotFound } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 26 15:28:04 UTC 2019 - 466 bytes - Viewed (0) -
src/cmd/go/internal/robustio/robustio_windows.go
package robustio import ( "errors" "internal/syscall/windows" "syscall" ) const errFileNotFound = syscall.ERROR_FILE_NOT_FOUND // isEphemeralError returns true if err may be resolved by waiting. func isEphemeralError(err error) bool { var errno syscall.Errno if errors.As(err, &errno) { switch errno { case syscall.ERROR_ACCESS_DENIED, syscall.ERROR_FILE_NOT_FOUND,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 26 15:28:04 UTC 2019 - 615 bytes - Viewed (0) -
src/cmd/go/internal/robustio/robustio.go
// // This set may be expanded in the future; programs must not rely on the // non-ephemerality of any given error. func IsEphemeralError(err error) bool { return isEphemeralError(err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.9K bytes - Viewed (0) -
src/cmd/go/internal/robustio/robustio_flaky.go
// increase in robustness is probably not worth the extra latency. return err, isEphemeralError(err) && !errors.Is(err, errFileNotFound) }) return b, err } func removeAll(path string) error { return retry(func() (err error, mayRetry bool) { err = os.RemoveAll(path) return err, isEphemeralError(err) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 2.5K bytes - Viewed (0) -
src/cmd/go/internal/robustio/robustio_other.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 516 bytes - Viewed (0)