Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 379 for Gevent (0.04 sec)

  1. docs/pt/docs/advanced/events.md

    Essas funções podem ser declaradas com `async def` ou `def` normal.
    
    ### Evento `startup` { #startup-event }
    
    Para adicionar uma função que deve rodar antes de a aplicação iniciar, declare-a com o evento `"startup"`:
    
    {* ../../docs_src/events/tutorial001_py39.py hl[8] *}
    
    Nesse caso, a função de manipulador do evento `startup` inicializará os itens do "banco de dados" (apenas um `dict`) com alguns valores.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/events.md

    Diese Funktionen können mit `async def` oder normalem `def` deklariert werden.
    
    ### `startup`-Event { #startup-event }
    
    Um eine Funktion hinzuzufügen, die vor dem Start der Anwendung ausgeführt werden soll, deklarieren Sie diese mit dem Event `startup`:
    
    {* ../../docs_src/events/tutorial001_py39.py hl[8] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/events.md

    In this case, the `startup` event handler function will initialize the items "database" (just a `dict`) with some values.
    
    You can add more than one event handler function.
    
    And your application won't start receiving requests until all the `startup` event handlers have completed.
    
    ### `shutdown` event { #shutdown-event }
    
    To add a function that should be run when the application is shutting down, declare it with the event `"shutdown"`:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. internal/event/event.go

    	NamespaceFormat = "namespace"
    
    	// AccessFormat - access log format used in some event targets.
    	AccessFormat = "access"
    
    	// AMZTimeFormat - event time format.
    	AMZTimeFormat = "2006-01-02T15:04:05.000Z"
    
    	// StoreExtension - file extension of an event file in store
    	StoreExtension = ".event"
    )
    
    // Identity represents access key who caused the event.
    type Identity struct {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. cmd/event-notification.go

    	UserAgent    string
    }
    
    // ToEvent - converts to notification event.
    func (args eventArgs) ToEvent(escape bool) event.Event {
    	eventTime := UTCNow()
    	uniqueID := fmt.Sprintf("%X", eventTime.UnixNano())
    	if !args.Object.ModTime.IsZero() {
    		uniqueID = fmt.Sprintf("%X", args.Object.ModTime.UnixNano())
    	}
    
    	respElements := map[string]string{
    		"x-amz-request-id": args.RespElements["requestId"],
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. okhttp-sse/src/test/java/okhttp3/sse/internal/Event.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.sse.internal
    
    internal data class Event(
      val id: String?,
      val type: String?,
      val data: String,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Dec 23 10:26:25 UTC 2023
    - 720 bytes
    - Viewed (0)
  7. docs/es/docs/advanced/events.md

    Estas funciones pueden ser declaradas con `async def` o `def` normal.
    
    ### Evento `startup` { #startup-event }
    
    Para añadir una función que debería ejecutarse antes de que la aplicación inicie, declárala con el evento `"startup"`:
    
    {* ../../docs_src/events/tutorial001_py39.py hl[8] *}
    
    En este caso, la función manejadora del evento `startup` inicializará los ítems de la "base de datos" (solo un `dict`) con algunos valores.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/Event.java

    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * Event sent by maven during various phases of the build process.
     * Such events can be listened to using {@link Listener}s objects
     * registered in the {@link Session}.
     *
     * @since 4.0.0
     */
    @Experimental
    public interface Event {
    
        /**
         * Gets the type of the event.
         *
         * @return the type of the event, never {@code null}
         */
        @Nonnull
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Mar 23 05:29:39 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. internal/config/lambda/event/event.go

    type GetObjectContext struct {
    	OutputRoute string `json:"outputRoute"`
    	OutputToken string `json:"outputToken"`
    	InputS3URL  string `json:"inputS3Url"`
    }
    
    // Event represents lambda function event, this is undocumented in AWS S3. This
    // structure bases itself on this structure but there is no binding.
    //
    //	{
    //	  "xAmzRequestId": "a2871150-1df5-4dc9-ad9f-3da283ca1bf3",
    //	  "getObjectContext": {
    //	    "outputRoute": "...",
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. 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()` 可以作为上下文管理器使用。
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top