Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 129 for eventbus (0.06 seconds)

  1. android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java

        this.eventBus = checkNotNull(eventBus);
        this.event = checkNotNull(event);
        this.subscriber = checkNotNull(subscriber);
        this.subscriberMethod = checkNotNull(subscriberMethod);
      }
    
      /**
       * Returns the {@link EventBus} that handled the event and the subscriber. Useful for broadcasting
       * a new event based on the error.
       */
      public EventBus getEventBus() {
        return eventBus;
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 11 17:06:34 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  2. docs/pt/docs/advanced/events.md

    {* ../../docs_src/events/tutorial003_py39.py hl[22] *}
    
    ## Eventos alternativos (descontinuados) { #alternative-events-deprecated }
    
    /// warning | Atenção
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  3. docs/es/docs/advanced/events.md

    {* ../../docs_src/events/tutorial003_py39.py hl[22] *}
    
    ## Eventos Alternativos (obsoleto) { #alternative-events-deprecated }
    
    /// warning | Advertencia
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  4. docs/es/docs/advanced/testing-events.md

    # Eventos de testing: lifespan y startup - shutdown { #testing-events-lifespan-and-startup-shutdown }
    
    Cuando necesitas que `lifespan` se ejecute en tus tests, puedes usar el `TestClient` con un statement `with`:
    
    {* ../../docs_src/app_testing/tutorial004_py39.py hl[9:15,18,27:28,30:32,41:43] *}
    
    
    Puedes leer más detalles sobre ["Ejecutar lifespan en tests en el sitio oficial de documentación de Starlette."](https://www.starlette.dev/lifespan/#running-lifespan-in-tests)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 632 bytes
    - Click Count (0)
  5. docs/pt/docs/advanced/testing-events.md

    # Testando eventos: lifespan e inicialização - encerramento { #testing-events-lifespan-and-startup-shutdown }
    
    Quando você precisa que o `lifespan` seja executado em seus testes, você pode utilizar o `TestClient` com a instrução `with`:
    
    {* ../../docs_src/app_testing/tutorial004_py39.py hl[9:15,18,27:28,30:32,41:43] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 685 bytes
    - Click Count (0)
  6. docs/ru/docs/advanced/events.md

    Параметр `lifespan` приложения `FastAPI` принимает асинхронный менеджер контекста, поэтому мы можем передать ему наш новый асинхронный менеджер контекста `lifespan`.
    
    {* ../../docs_src/events/tutorial003_py39.py hl[22] *}
    
    ## Альтернативные события (устаревшие) { #alternative-events-deprecated }
    
    /// warning | Предупреждение
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  7. docs/zh/docs/advanced/events.md

    首先要注意的是,我们定义了一个带有 `yield` 的异步函数。这与带有 `yield` 的依赖项非常相似。
    
    ```Python hl_lines="14-19"
    {!../../docs_src/events/tutorial003.py!}
    ```
    
    这个函数在 `yield`之前的部分,会在应用启动前执行。
    
    剩下的部分在 `yield` 之后,会在应用完成后执行。
    
    ## 异步上下文管理器
    
    如你所见,这个函数有一个装饰器 `@asynccontextmanager` 。
    
    它将函数转化为所谓的“**异步上下文管理器**”。
    
    ```Python hl_lines="1  13"
    {!../../docs_src/events/tutorial003.py!}
    ```
    
    在 Python 中,  **上下文管理器**是一个你可以在 `with` 语句中使用的东西,例如,`open()` 可以作为上下文管理器使用。
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 7K bytes
    - Click Count (0)
  8. docs/de/docs/advanced/events.md

    {* ../../docs_src/events/tutorial003_py39.py hl[22] *}
    
    ## Alternative Events (<abbr title="veraltet, obsolet: Es soll nicht mehr verwendet werden">deprecatet</abbr>) { #alternative-events-deprecated }
    
    /// warning | Achtung
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  9. docs/en/docs/advanced/events.md

    The `lifespan` parameter of the `FastAPI` app takes an **async context manager**, so we can pass our new `lifespan` async context manager to it.
    
    {* ../../docs_src/events/tutorial003_py39.py hl[22] *}
    
    ## Alternative Events (deprecated) { #alternative-events-deprecated }
    
    /// warning
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/testing-events.md

    # Testing Events: lifespan and startup - shutdown { #testing-events-lifespan-and-startup-shutdown }
    
    When you need `lifespan` to run in your tests, you can use the `TestClient` with a `with` statement:
    
    {* ../../docs_src/app_testing/tutorial004_py39.py hl[9:15,18,27:28,30:32,41:43] *}
    
    
    You can read more details about the ["Running lifespan in tests in the official Starlette documentation site."](https://www.starlette.dev/lifespan/#running-lifespan-in-tests)
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 626 bytes
    - Click Count (0)
Back to Top