Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 513 for chains (0.32 sec)

  1. src/cmd/compile/internal/syntax/testdata/chans.go

    func Ranger[T any]() (*Sender[T], *Receiver[T]) {
    	c := make(chan T)
    	d := make(chan bool)
    	s := &Sender[T]{values: c, done: d}
    	r := &Receiver[T]{values: c, done: d}
    	runtime.SetFinalizer(r, r.finalize)
    	return s, r
    }
    
    // A sender is used to send values to a Receiver.
    type Sender[T any] struct {
    	values chan<- T
    	done   <-chan bool
    }
    
    // Send sends a value to the receiver. It returns whether any more
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 18:02:18 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/teststdio/testdata/chain.go

    // license that can be found in the LICENSE file.
    
    //go:build test_run
    
    // Pass numbers along a chain of threads.
    
    package main
    
    import (
    	"runtime"
    	"strconv"
    
    	"cgostdio/stdio"
    )
    
    const N = 10
    const R = 5
    
    func link(left chan<- int, right <-chan int) {
    	// Keep the links in dedicated operating system
    	// threads, so that this program tests coordination
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 914 bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/chans.go

    func Ranger[T any]() (*Sender[T], *Receiver[T]) {
    	c := make(chan T)
    	d := make(chan bool)
    	s := &Sender[T]{values: c, done: d}
    	r := &Receiver[T]{values: c, done: d}
    	runtime.SetFinalizer(r, r.finalize)
    	return s, r
    }
    
    // A sender is used to send values to a Receiver.
    type Sender[T any] struct {
    	values chan<- T
    	done <-chan bool
    }
    
    // Send sends a value to the receiver. It returns whether any more
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/testdata/stackcheck/main.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func main() { asmMain() }
    
    func asmMain()
    
    func startSelf()
    
    func startChain()
    func chain0()
    func chain1()
    func chain2()
    func chainEnd()
    
    func startRec()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:26 UTC 2022
    - 345 bytes
    - Viewed (0)
  5. test/typeparam/chans.go

    // or the context is canceled, at which point the returned channel is closed.
    func _Merge[Elem any](ctx context.Context, c1, c2 <-chan Elem) <-chan Elem {
    	r := make(chan Elem)
    	go func(ctx context.Context, c1, c2 <-chan Elem, r chan<- Elem) {
    		defer close(r)
    		for c1 != nil || c2 != nil {
    			select {
    			case <-ctx.Done():
    				return
    			case v1, ok := <-c1:
    				if ok {
    					r <- v1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  6. tools/istio-iptables/pkg/builder/testdata/multi-rules-new-chain-v6.golden

    -t table -N chain
    -t table -A chain -f foo -b bar
    -t table -I chain 2 -f foo -b bar
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 117 bytes
    - Viewed (0)
  7. tools/istio-iptables/pkg/builder/testdata/multi-rules-new-chain-v4.golden

    -t table -N chain
    -t table -A chain -f foo -b bar
    -t table -I chain 2 -f foo -b bar
    -t table -A chain -f foo -b baz
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 150 bytes
    - Viewed (0)
  8. tools/istio-iptables/pkg/builder/testdata/multi-rules-new-chain-v6-restore.golden

    * table
    -N chain
    -A chain -f foo -b bar
    -I chain 2 -f foo -b bar
    -I chain 1 -f foo -b bar
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 96 bytes
    - Viewed (0)
  9. tools/istio-iptables/pkg/builder/testdata/multi-rules-new-chain-v4-restore.golden

    * nat
    -A PREROUTING -f foo -b bar
    COMMIT
    * table
    -N chain
    -A chain -f foo -b bar
    -I chain 2 -f foo -b bar
    -A chain -f foo -b baz
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 135 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/teststdio/testdata/chain.out

    Austin Clements <******@****.***> 1683216807 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 115 bytes
    - Viewed (0)
Back to top