Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,978 for seni (0.15 sec)

  1. tests/test_tutorial/test_background_tasks/test_tutorial002_an.py

    
    def test():
        log = Path("log.txt")
        if log.is_file():
            os.remove(log)  # pragma: no cover
        response = client.post("/send-notification/******@****.***?q=some-query")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Message sent"}
        with open("./log.txt") as f:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 571 bytes
    - Viewed (0)
  2. test/typeparam/orderedmap.go

    	return s, r
    }
    
    // A _Sender is used to send values to a Receiver.
    type _Sender[Elem any] struct {
    	values chan<- Elem
    	done   <-chan struct{}
    }
    
    // Send sends a value to the receiver. It reports whether the value was sent.
    // The value will not be sent if the context is closed or the receiver
    // is freed.
    func (s *_Sender[Elem]) Send(ctx context.Context, v Elem) bool {
    	select {
    	case <-ctx.Done():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  3. docs_src/background_tasks/tutorial002_an_py310.py

            background_tasks.add_task(write_log, message)
        return q
    
    
    @app.post("/send-notification/{email}")
    async def send_notification(
        email: str, background_tasks: BackgroundTasks, q: Annotated[str, Depends(get_query)]
    ):
        message = f"message to {email}\n"
        background_tasks.add_task(write_log, message)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 683 bytes
    - Viewed (0)
  4. internal/grid/README.md

    Returning any error will also cancel the stream remotely.
    
    CAREFUL: When utilizing two-way communication, it is important to ensure that the remote handler is not blocked on a send.
    If the remote handler is blocked on a send, and the client is trying to send without the remote receiving, 
    the operation would become deadlocked if the channels are full.
    
    ### Typed handlers
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_client_tls13.go

    		return errors.New("tls: server sent an unnecessary HelloRetryRequest message")
    	}
    
    	if hs.serverHello.cookie != nil {
    		hello.cookie = hs.serverHello.cookie
    	}
    
    	if hs.serverHello.serverShare.group != 0 {
    		c.sendAlert(alertDecodeError)
    		return errors.New("tls: received malformed key_share extension")
    	}
    
    	// If the server sent a key_share extension selecting a group, ensure it's
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonClient.java

     * <li>If the build is started, the daemon may send zero or more {@link OutputMessage} messages.</li>
     * <li>If the build is started, the daemon may send zero or more {@link BuildEvent} messages.</li>
     * <li>If the build is started, the client may send zero or more {@link ForwardInput} messages followed by exactly one {@link CloseInput} message.</li>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        server.send(message3)
        clientListener.assertTextMessage(message3)
    
        // Empty client to server message.
        val message4 = ""
        client.send(message4)
        serverListener.assertTextMessage(message4)
    
        // Server to client message that shares context with message1.
        val message5 = message1 + message1
        server.send(message5)
        clientListener.assertTextMessage(message5)
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. internal/grid/benchmark_test.go

    					}
    					ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
    					// Send the payload.
    					t := time.Now()
    					st, err := conn.NewStream(ctx, handlerTest, payload)
    					if err != nil {
    						if debugReqs {
    							fmt.Println(err.Error())
    						}
    						b.Fatal(err.Error())
    					}
    					got := 0
    					sent := 0
    					go func() {
    						for i := 0; i < messages; i++ {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  9. internal/logger/target/types/types.go

    type TargetStats struct {
    	// QueueLength is the queue length if any messages are queued.
    	QueueLength int
    
    	// TotalMessages is the total number of messages sent in the lifetime of the target
    	TotalMessages int64
    
    	// FailedMessages should log message count that failed to send.
    	FailedMessages int64
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Nov 10 18:20:21 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. pkg/kubelet/config/mux.go

    	// one source is defined.
    	Merge(source string, update interface{}) error
    }
    
    // mux is a class for merging configuration from multiple sources.  Changes are
    // pushed via channels and sent to the merge function.
    type mux struct {
    	// Invoked when an update is sent to a source.
    	merger merger
    
    	// Sources and their lock.
    	sourceLock sync.RWMutex
    	// Maps source names to channels
    	sources map[string]chan interface{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 20:02:23 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top