Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for lookupValue (0.12 sec)

  1. src/net/lookup.go

    type onlyValuesCtx struct {
    	context.Context
    	lookupValues context.Context
    }
    
    var _ context.Context = (*onlyValuesCtx)(nil)
    
    // Value performs a lookup if the original context hasn't expired.
    func (ovc *onlyValuesCtx) Value(key any) any {
    	select {
    	case <-ovc.lookupValues.Done():
    		return nil
    	default:
    		return ovc.lookupValues.Value(key)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 28.6K bytes
    - Viewed (0)
Back to top