Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for timeBeforeContextDeadline (0.18 sec)

  1. src/net/http/client.go

    			reqDidTimeout: didTimeout,
    		}
    	}
    	return resp, nil, nil
    }
    
    // timeBeforeContextDeadline reports whether the non-zero Time t is
    // before ctx's deadline, if any. If ctx does not have a deadline, it
    // always reports true (the deadline is considered infinite).
    func timeBeforeContextDeadline(t time.Time, ctx context.Context) bool {
    	d, ok := ctx.Deadline()
    	if !ok {
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 06:06:11 UTC 2024
    - 33.7K bytes
    - Viewed (0)
Back to top