Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 140 for kAsync (0.1 sec)

  1. .teamcity/src/main/kotlin/util/AdHocPerformanceScenario.kt

            defaultProfiler,
            display = ParameterDisplay.PROMPT,
            allowEmpty = false,
            description = "Command line option for the performance test task to enable profiling. For example `async-profiler`, `async-profiler-heap`, `async-profiler-all` or `jfr`. Use `none` for benchmarking only."
        )
    }
    
    object AdHocPerformanceScenarioLinux : AdHocPerformanceScenario(Os.LINUX)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 03:39:03 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. cmd/kube-controller-manager/app/autoscaling.go

    	apiVersionsGetter := custom_metrics.NewAvailableAPIsGetter(hpaClient.Discovery())
    	// invalidate the discovery information roughly once per resync interval our API
    	// information is *at most* two resync intervals old.
    	go custom_metrics.PeriodicallyInvalidate(
    		apiVersionsGetter,
    		controllerContext.ComponentConfig.HPAController.HorizontalPodAutoscalerSyncPeriod.Duration,
    		ctx.Done())
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 01:37:36 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. tests/test_generic_parameterless_depends.py

    app = FastAPI()
    
    T = TypeVar("T")
    
    Dep = Annotated[T, Depends()]
    
    
    class A:
        pass
    
    
    class B:
        pass
    
    
    @app.get("/a")
    async def a(dep: Dep[A]):
        return {"cls": dep.__class__.__name__}
    
    
    @app.get("/b")
    async def b(dep: Dep[B]):
        return {"cls": dep.__class__.__name__}
    
    
    client = TestClient(app)
    
    
    def test_generic_parameterless_depends():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:52:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/internal/abi/symtab.go

    	FUNCDATA_WrapInfo           = 7
    )
    
    // Special values for the PCDATA_UnsafePoint table.
    const (
    	UnsafePointSafe   = -1 // Safe for async preemption
    	UnsafePointUnsafe = -2 // Unsafe for async preemption
    
    	// UnsafePointRestart1(2) apply on a sequence of instructions, within
    	// which if an async preemption happens, we should back off the PC
    	// to the start of the sequence when resuming.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 14:25:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/dataclasses.md

        ๐Ÿ”„, ๐Ÿ‘† ๐Ÿ’ช ๐ŸŒ€ `dataclasses` โฎ๏ธ ๐Ÿฉ ๐Ÿ†Ž โœ.
    
    8๏ธโƒฃ. ๐Ÿ‘€ ๐Ÿ‘ˆ ๐Ÿ‘‰ *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* โš™๏ธ ๐Ÿฅ” `def` โ†ฉ๏ธ `async def`.
    
        ๐Ÿ•ง, FastAPI ๐Ÿ‘† ๐Ÿ’ช ๐ŸŒ€ `def` & `async def` ๐Ÿ’ช.
    
        ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ’ช โ†—๏ธ ๐Ÿ”ƒ ๐Ÿ•โ” โš™๏ธ โ”, โœ… ๐Ÿ‘… ๐Ÿ“„ _"๐Ÿƒ โ“" _ ๐Ÿฉบ ๐Ÿ”ƒ <a href="https://fastapi.tiangolo.com/async/#in-a-hurry" target="_blank" class="internal-link">`async` &amp; `await`</a>.
    
    9๏ธโƒฃ. ๐Ÿ‘‰ *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* ๐Ÿšซ ๐Ÿ›ฌ ๐ŸŽป (๐Ÿ‘ โšซ๏ธ ๐Ÿ’ช), โœ‹๏ธ ๐Ÿ“‡ ๐Ÿ“– โฎ๏ธ ๐Ÿ”— ๐Ÿ’ฝ.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. fastapi/security/api_key.py

        ```python
        from fastapi import Depends, FastAPI
        from fastapi.security import APIKeyQuery
    
        app = FastAPI()
    
        query_scheme = APIKeyQuery(name="api_key")
    
    
        @app.get("/items/")
        async def read_items(api_key: str = Depends(query_scheme)):
            return {"api_key": api_key}
        ```
        """
    
        def __init__(
            self,
            *,
            name: Annotated[
                str,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 23 22:29:18 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. fastapi/background.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")
            return {"message": "Notification sent in the background"}
        ```
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. docs/ko/docs/advanced/events.md

    !!! tip "ํŒ"
        ์ด ์˜ˆ์ œ์—์„œ๋Š” ํŒŒ์ผ๊ณผ ์ƒํ˜ธ์ž‘์šฉ ํ•˜๊ธฐ ์œ„ํ•ด ํŒŒ์ด์ฌ ํ‘œ์ค€ ํ•จ์ˆ˜์ธ `open()`์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
    
        ๋”ฐ๋ผ์„œ ๋””์Šคํฌ์— ๋ฐ์ดํ„ฐ๋ฅผ ์“ฐ๊ธฐ ์œ„ํ•ด "๋Œ€๊ธฐ"๊ฐ€ ํ•„์š”ํ•œ I/O (์ž…๋ ฅ/์ถœ๋ ฅ) ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.
    
        ๊ทธ๋Ÿฌ๋‚˜ `open()`์€ `async`์™€ `await`์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ์ด๋ฒคํŠธ ํ•ธ๋“ค๋Ÿฌ ํ•จ์ˆ˜๋Š” `async def`๊ฐ€ ์•„๋‹Œ ํ‘œ์ค€ `def`๋กœ ์„ ์–ธํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
    
    !!! info "์ •๋ณด"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 22:35:55 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. docs/em/docs/advanced/events.md

    ```
    
    **๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ** ๐Ÿ ๐Ÿ•ณ ๐Ÿ‘ˆ ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `with` ๐Ÿ“„, ๐Ÿ–ผ, `open()` ๐Ÿ’ช โš™๏ธ ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ:
    
    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    โฎ๏ธ โฌ ๐Ÿ, ๐Ÿ“ค **๐Ÿ” ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ**. ๐Ÿ‘† ๐Ÿ”œ โš™๏ธ โšซ๏ธ โฎ๏ธ `async with`:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    ๐Ÿ•โ” ๐Ÿ‘† โœ ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ โš–๏ธ ๐Ÿ” ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ ๐Ÿ’– ๐Ÿ”›, โšซ๏ธโ” โšซ๏ธ ๐Ÿ”จ ๐Ÿ‘ˆ, โญ ๐Ÿ›ฌ `with` ๐Ÿซ, โšซ๏ธ ๐Ÿ”œ ๐Ÿ› ๏ธ ๐Ÿ“Ÿ โญ `yield`, &amp; โฎ๏ธ โŽ `with` ๐Ÿซ, โšซ๏ธ ๐Ÿ”œ ๐Ÿ› ๏ธ ๐Ÿ“Ÿ โฎ๏ธ `yield`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/request-files.md

    `UploadFile` ๆ”ฏๆŒไปฅไธ‹ `async` ๆ–นๆณ•๏ผŒ๏ผˆไฝฟ็”จๅ†…้ƒจ `SpooledTemporaryFile`๏ผ‰ๅฏ่ฐƒ็”จ็›ธๅบ”็š„ๆ–‡ไปถๆ–นๆณ•ใ€‚
    
    * `write(data)`๏ผšๆŠŠ `data` ๏ผˆ`str` ๆˆ– `bytes`๏ผ‰ๅ†™ๅ…ฅๆ–‡ไปถ๏ผ›
    * `read(size)`๏ผšๆŒ‰ๆŒ‡ๅฎšๆ•ฐ้‡็š„ๅญ—่Š‚ๆˆ–ๅญ—็ฌฆ๏ผˆ`size` (`int`)๏ผ‰่ฏปๅ–ๆ–‡ไปถๅ†…ๅฎน๏ผ›
    * `seek(offset)`๏ผš็งปๅŠจ่‡ณๆ–‡ไปถ `offset` ๏ผˆ`int`๏ผ‰ๅญ—่Š‚ๅค„็š„ไฝ็ฝฎ๏ผ›
        * ไพ‹ๅฆ‚๏ผŒ`await myfile.seek(0) ` ็งปๅŠจๅˆฐๆ–‡ไปถๅผ€ๅคด๏ผ›
        * ๆ‰ง่กŒ `await myfile.read()` ๅŽ๏ผŒ้œ€ๅ†ๆฌก่ฏปๅ–ๅทฒ่ฏปๅ–ๅ†…ๅฎนๆ—ถ๏ผŒ่ฟ™็งๆ–นๆณ•็‰นๅˆซๅฅฝ็”จ๏ผ›
    * `close()`๏ผšๅ…ณ้—ญๆ–‡ไปถใ€‚
    
    ๅ› ไธบไธŠ่ฟฐๆ–นๆณ•้ƒฝๆ˜ฏ `async` ๆ–นๆณ•๏ผŒ่ฆๆญ้…ใ€Œawaitใ€ไฝฟ็”จใ€‚
    
    ไพ‹ๅฆ‚๏ผŒๅœจ `async` *่ทฏๅพ„ๆ“ไฝœๅ‡ฝๆ•ฐ* ๅ†…๏ผŒ่ฆ็”จไปฅไธ‹ๆ–นๅผ่ฏปๅ–ๆ–‡ไปถๅ†…ๅฎน๏ผš
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top