Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for Notification (0.05 sec)

  1. android/guava-tests/test/com/google/common/cache/NullCacheTest.java

        Object key = new Object();
        assertThat(cache.getUnchecked(key)).isSameInstanceAs(computed);
        RemovalNotification<Object, Object> notification = listener.remove();
        assertThat(notification.getKey()).isSameInstanceAs(key);
        assertThat(notification.getValue()).isSameInstanceAs(computed);
        assertThat(notification.getCause()).isEqualTo(RemovalCause.SIZE);
        assertThat(listener.isEmpty()).isTrue();
        checkEmpty(cache);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/NullCacheTest.java

        Object key = new Object();
        assertThat(cache.getUnchecked(key)).isSameInstanceAs(computed);
        RemovalNotification<Object, Object> notification = listener.remove();
        assertThat(notification.getKey()).isSameInstanceAs(key);
        assertThat(notification.getValue()).isSameInstanceAs(computed);
        assertThat(notification.getCause()).isEqualTo(RemovalCause.SIZE);
        assertThat(listener.isEmpty()).isTrue();
        checkEmpty(cache);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        // Verify that each received removal notification was valid
        for (RemovalNotification<String, String> notification : removalListener) {
          assertWithMessage("Invalid removal notification")
              .that(notification.getValue())
              .isEqualTo(notification.getKey());
        }
    
        CacheStats stats = cache.stats();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_background_tasks/test_tutorial001.py

        if log.is_file():
            os.remove(log)  # pragma: no cover
        response = client.post("/send-notification/******@****.***")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Notification sent in the background"}
        with open("./log.txt") as f:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 583 bytes
    - Viewed (0)
  5. docs_src/background_tasks/tutorial001_py39.py

        with open("log.txt", mode="w") as email_file:
            content = f"notification for {email}: {message}"
            email_file.write(content)
    
    
    @app.post("/send-notification/{email}")
    async def send_notification(email: str, background_tasks: BackgroundTasks):
        background_tasks.add_task(write_notification, email, message="some notification")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 519 bytes
    - Viewed (0)
  6. tests/test_sub_callbacks.py

        * Collect the money from the client.
        * Send a notification back to the API user (the external developer), as a callback.
            * At this point is that the API will somehow send a POST request to the
                external API with the notification of the invoice event
                (e.g. "payment successful").
        """
        # Send the invoice, collect the money, send the notification (the callback)
        return {"msg": "Invoice received"}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

        List<RemovalNotification<Integer, Integer>> notifications = new ArrayList<>();
        Cache<Integer, Integer> cache =
            CacheBuilder.newBuilder()
                .removalListener(
                    new RemovalListener<Integer, Integer>() {
                      @Override
                      public void onRemoval(RemovalNotification<Integer, Integer> notification) {
                        notifications.add(notification);
                      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 7K bytes
    - Viewed (0)
  8. docs_src/openapi_callbacks/tutorial001_py310.py

        * Collect the money from the client.
        * Send a notification back to the API user (the external developer), as a callback.
            * At this point is that the API will somehow send a POST request to the
                external API with the notification of the invoice event
                (e.g. "payment successful").
        """
        # Send the invoice, collect the money, send the notification (the callback)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  9. fastapi/background.py

                content = f"notification for {email}: {message}"
                email_file.write(content)
    
    
        @app.post("/send-notification/{email}")
        async def send_notification(email: str, background_tasks: BackgroundTasks):
            background_tasks.add_task(write_notification, email, message="some notification")
            return {"message": "Notification sent in the background"}
        ```
        """
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  10. docs_src/openapi_callbacks/tutorial001_py39.py

        * Collect the money from the client.
        * Send a notification back to the API user (the external developer), as a callback.
            * At this point is that the API will somehow send a POST request to the
                external API with the notification of the invoice event
                (e.g. "payment successful").
        """
        # Send the invoice, collect the money, send the notification (the callback)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top