Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for underlyingError (0.29 sec)

  1. src/os/error.go

    func IsTimeout(err error) bool {
    	terr, ok := underlyingError(err).(timeout)
    	return ok && terr.Timeout()
    }
    
    func underlyingErrorIs(err, target error) bool {
    	// Note that this function is not errors.Is:
    	// underlyingError only unwraps the specific error-wrapping types
    	// that it historically did, not all errors implementing Unwrap().
    	err = underlyingError(err)
    	if err == target {
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top