Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 4,005 for Receive (0.48 sec)

  1. src/runtime/chan_test.go

    				}
    			}()
    			for i := 0; i < 100; i++ {
    				v, ok := <-c
    				if !ok {
    					t.Fatalf("chan[%d]: receive failed, expected %v", chanCap, i)
    				}
    				if v != i {
    					t.Fatalf("chan[%d]: received %v, expected %v", chanCap, v, i)
    				}
    			}
    
    			// Send 1000 integers in 4 goroutines,
    			// ensure that we receive what we send.
    			const P = 4
    			const L = 1000
    			for p := 0; p < P; p++ {
    				go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonClientConnection.java

                }
            }
        }
    
        @Override
        @Nullable
        public Message receive() throws DaemonConnectionException {
            try {
                return connection.receive();
            } catch (MessageIOException e) {
                LOG.debug("Problem receiving message to the daemon. Performing 'on failure' operation...");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 06:43:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. src/runtime/sigqueue.go

    			}
    		}
    
    		// Wait for updates to be available from signal sender.
    	Receive:
    		for {
    			switch sig.state.Load() {
    			default:
    				throw("signal_recv: inconsistent state")
    			case sigIdle:
    				if sig.state.CompareAndSwap(sigIdle, sigReceiving) {
    					if GOOS == "darwin" || GOOS == "ios" {
    						sigNoteSleep(&sig.note)
    						break Receive
    					}
    					notetsleepg(&sig.note, -1)
    					noteclear(&sig.note)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. src/os/signal/example_test.go

    	// Set up channel on which to send signal notifications.
    	// We must use a buffered channel or risk missing the signal
    	// if we're not ready to receive when the signal is sent.
    	c := make(chan os.Signal, 1)
    	signal.Notify(c, os.Interrupt)
    
    	// Block until a signal is received.
    	s := <-c
    	fmt.Println("Got signal:", s)
    }
    
    func ExampleNotify_allSignals() {
    	// Set up channel on which to send signal notifications.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 18:38:23 UTC 2017
    - 1001 bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DefaultDaemonConnection.java

            // 2. Stop the connection. This means that the thread receiving from the connection will receive a null and finish up.
            // 3. Stop receiving incoming messages. Blocks until the receive thread has finished. This will notify the stdin and receive queues to signal end of input.
            // 4. Stop the receive queue, to unblock any threads blocked in receive().
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/expr0.go

    	b7 = -b0 /* ERROR "not defined" */
    	b8 = ^b0 /* ERROR "not defined" */
    	b9 = *b0 /* ERROR "cannot indirect" */
    	b10 = &true /* ERROR "cannot take address" */
    	b11 = &b0
    	b12 = <-b0 /* ERROR "cannot receive" */
    	b13 = & & /* ERROR "cannot take address" */ b0
    	b14 = ~ /* ERROR "cannot use ~ outside of interface or type constraint" */ b0
    
    	// byte
    	_ = byte(0)
    	_ = byte(- /* ERROR "overflows" */ 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. src/encoding/gob/example_encdec_test.go

    func (v Vector) MarshalBinary() ([]byte, error) {
    	// A simple encoding: plain text.
    	var b bytes.Buffer
    	fmt.Fprintln(&b, v.x, v.y, v.z)
    	return b.Bytes(), nil
    }
    
    // UnmarshalBinary modifies the receiver so it must take a pointer receiver.
    func (v *Vector) UnmarshalBinary(data []byte) error {
    	// A simple encoding: plain text.
    	b := bytes.NewBuffer(data)
    	_, err := fmt.Fscanln(b, &v.x, &v.y, &v.z)
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 1.5K bytes
    - Viewed (0)
  8. tests/test_ws_router.py

            @functools.wraps(app)
            async def wrapped_app(scope, receive, send):
                if scope["type"] != "websocket":
                    return await app(scope, receive, send)  # pragma: no cover
    
                async def call_next():
                    return await app(scope, receive, send)
    
                websocket = WebSocket(scope, receive=receive, send=send)
                return await middleware_func(websocket, call_next)
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/api/artifacts/transform/TransformAction.java

     * </ul>
     *
     *  Implementations can receive parameters by using annotated abstract getter methods.
     *  <ul>
     *      <li>An abstract getter annotated with {@link InputArtifact} will receive the input artifact location, which is the file or directory that the transform should be applied to.</li>
     *      <li>An abstract getter with {@link InputArtifactDependencies} will receive the dependencies of its input artifact.</li>
     *  </ul>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 05 15:49:03 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/LongRunningOperation.java

    /**
     * Offers ways to communicate both ways with a Gradle operation, be it building a model or running tasks.
     * <p>
     * Enables tracking progress via listeners that will receive events from the Gradle operation.
     * <p>
     * Allows providing standard output streams that will receive output if the Gradle operation writes to standard streams.
     * <p>
     * Allows providing standard input that can be consumed by the gradle operation (useful for interactive builds).
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 14K bytes
    - Viewed (0)
Back to top