- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for SendRecv (0.38 sec)
-
src/cmd/compile/internal/types2/under.go
// We have channels that differ in direction only. // If there's an unrestricted channel, select the restricted one. switch { case x.dir == SendRecv: return y case y.dir == SendRecv: return x } } } // types are different return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 22:34:27 UTC 2024 - 2.7K bytes - Viewed (0) -
src/go/types/chan.go
type Chan struct { dir ChanDir elem Type } // A ChanDir value indicates a channel direction. type ChanDir int // The direction of a channel is indicated by one of these constants. const ( SendRecv ChanDir = iota SendOnly RecvOnly ) // NewChan returns a new channel type for the given direction and element type. func NewChan(dir ChanDir, elem Type) *Chan { return &Chan{dir: dir, elem: elem} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 1K bytes - Viewed (0) -
src/go/types/under.go
// We have channels that differ in direction only. // If there's an unrestricted channel, select the restricted one. switch { case x.dir == SendRecv: return y case y.dir == SendRecv: return x } } } // types are different return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 22:34:27 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go
return nil } if !types.Identical(ch.Elem(), curr.Elem()) { return nil // channel elements are not identical. } if ch.Dir() == types.SendRecv { // ch is bidirectional. We can safely always use curr's direction. ch = curr } else if curr.Dir() != types.SendRecv && ch.Dir() != curr.Dir() { // ch and curr are not bidirectional and not the same direction. return nil } } return ch }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.3K bytes - Viewed (0) -
src/go/internal/gcimporter/support.go
// tag values must match the constants in cmd/compile/internal/gc/go.go switch d { case 1 /* Crecv */ : return types.RecvOnly case 2 /* Csend */ : return types.SendOnly case 3 /* Cboth */ : return types.SendRecv default: errorf("unexpected channel dir %d", d) return 0 } } var predeclared = []types.Type{ // basic types types.Typ[types.Bool], types.Typ[types.Int], types.Typ[types.Int8],
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/iexport.go
// Tag itag // arrayType // Len uint64 // Elem typeOff // } // // type ChanType struct { // Tag itag // chanType // Dir uint64 // 1 RecvOnly; 2 SendOnly; 3 SendRecv // Elem typeOff // } // // type MapType struct { // Tag itag // mapType // Key typeOff // Elem typeOff // } // // type FuncType struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 21 02:40:02 UTC 2023 - 6.8K bytes - Viewed (0)