- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 226 for nbrecv (0.12 sec)
-
test/closedchan.go
// should be able to get the last value via Nbrecv if x, selected := c.Nbrecv(); x != 1 || !selected { println("testasync2: Nbrecv did not get 1, true:", x, selected, c.Impl()) failed = true } test1(c) } func testasync4(c Chan) { // should be able to get the last value via Nbrecv2 if x, ok, selected := c.Nbrecv2(); x != 1 || !ok || !selected {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:48:57 UTC 2012 - 5.8K bytes - Viewed (0) -
src/internal/types/testdata/examples/functions.go
func fboth[T any](chan T) {} func frecv[T any](<-chan T) {} func fsend[T any](chan<- T) {} func _() { var both chan int var recv <-chan int var send chan<-int fboth(both) fboth(recv /* ERROR "cannot use" */ ) fboth(send /* ERROR "cannot use" */ ) frecv(both) frecv(recv) frecv(send /* ERROR "cannot use" */ ) fsend(both) fsend(recv /* ERROR "cannot use" */) fsend(send) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 30 20:19:38 UTC 2023 - 5.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/recv.go
"golang.org/x/tools/internal/aliases" ) // ReceiverNamed returns the named type (if any) associated with the // type of recv, which may be of the form N or *N, or aliases thereof. // It also reports whether a Pointer was present. func ReceiverNamed(recv *types.Var) (isPtr bool, named *types.Named) { t := recv.Type() if ptr, ok := aliases.Unalias(t).(*types.Pointer); ok { isPtr = true t = ptr.Elem() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/dcl.go
func NewMethodType(sig *types.Type, recv *types.Type) *types.Type { nrecvs := 0 if recv != nil { nrecvs++ } // TODO(mdempsky): Move this function to types. // TODO(mdempsky): Preserve positions, names, and package from sig+recv. params := make([]*types.Field, nrecvs+sig.NumParams()) if recv != nil { params[0] = types.NewField(base.Pos, nil, recv) } for i, param := range sig.Params() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:15:50 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/select.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 01:53:41 UTC 2023 - 7.8K bytes - Viewed (0) -
src/runtime/select.go
if nsends+nrecvs == 0 { return dflt, false } // Compact sel and orig if necessary. if nsends+nrecvs < len(cases) { copy(sel[nsends:], sel[len(cases)-nrecvs:]) copy(orig[nsends:], orig[len(cases)-nrecvs:]) } order := make([]uint16, 2*(nsends+nrecvs)) var pc0 *uintptr if raceenabled { pcs := make([]uintptr, nsends+nrecvs) for i := range pcs { selectsetpc(&pcs[i]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 13 21:36:04 UTC 2024 - 15K bytes - Viewed (0) -
src/cmd/compile/internal/ir/fmt.go
exprFmt(n.X, s, nprec) fmt.Fprintf(s, " %v ", n.Op()) exprFmt(n.Y, s, nprec+1) case OSEND: n := n.(*SendStmt) exprFmt(n.Chan, s, nprec) fmt.Fprintf(s, " <- ") exprFmt(n.Value, s, nprec+1) case OADDSTR: n := n.(*AddStringExpr) for i, n1 := range n.List { if i != 0 { fmt.Fprint(s, " + ") } exprFmt(n1, s, nprec) } default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0) -
tensorflow/compiler/jit/deadness_analysis_test.cc
Scope root = Scope::NewRootScope().ExitOnError(); Output recv = ops::_Recv(root.WithOpName("recv"), DT_BOOL, "tensor", "sender", 0, "receiver"); Output value = ops::Placeholder(root.WithOpName("value"), DT_BOOL); ops::Switch sw(root.WithOpName("switch"), value, recv); Output logical_and = ops::LogicalAnd(root.WithOpName("and"), recv, sw.output_true); std::unique_ptr<DeadnessAnalysis> result;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 06:59:07 UTC 2024 - 51.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComReadAndXResponse.java
return bufferIndex - start; } @Override protected int readBytesWireFormat ( byte[] buffer, int bufferIndex ) { // handled special in SmbTransport.doRecv() return 0; } @Override public String toString () { return new String(
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 3.4K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/mkbuiltin.go
} return fmt.Sprintf("types.NewArray(%s, %d)", i.subtype(t.Elt), intconst(t.Len)) case *ast.ChanType: dir := "types.Cboth" switch t.Dir { case ast.SEND: dir = "types.Csend" case ast.RECV: dir = "types.Crecv" } return fmt.Sprintf("types.NewChan(%s, %s)", i.subtype(t.Value), dir) case *ast.FuncType: return fmt.Sprintf("newSig(%s, %s)", i.fields(t.Params, false), i.fields(t.Results, false))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 6K bytes - Viewed (0)