- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 140 for kAsync (0.1 sec)
-
.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) -
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) -
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) -
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) -
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` & `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) -
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) -
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) -
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) -
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`, & โฎ๏ธ โ `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) -
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)