Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 592 for isync (0.05 sec)

  1. docs/em/docs/tutorial/request-files.md

    * `close()`: ๐Ÿ” ๐Ÿ“.
    
    ๐ŸŒ ๐Ÿ‘ซ ๐Ÿ‘ฉโ€๐Ÿ”ฌ `async` ๐Ÿ‘ฉโ€๐Ÿ”ฌ, ๐Ÿ‘† ๐Ÿ’ช "โŒ›" ๐Ÿ‘ซ.
    
    ๐Ÿ–ผ, ๐Ÿ”˜ `async` *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* ๐Ÿ‘† ๐Ÿ’ช ๐Ÿคš ๐ŸŽš โฎ๏ธ:
    
    ```Python
    contents = await myfile.read()
    ```
    
    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ”˜ ๐Ÿ˜ `def` *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข*, ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ” `UploadFile.file` ๐Ÿ”—, ๐Ÿ–ผ:
    
    ```Python
    contents = myfile.file.read()
    ```
    
    !!! note "`async` ๐Ÿ“ก โ„น"
        ๐Ÿ•โ” ๐Ÿ‘† โš™๏ธ `async` ๐Ÿ‘ฉโ€๐Ÿ”ฌ, **FastAPI** ๐Ÿƒ ๐Ÿ“ ๐Ÿ‘ฉโ€๐Ÿ”ฌ ๐Ÿงต & โŒ› ๐Ÿ‘ซ.
    
    !!! note "๐Ÿ’ƒ ๐Ÿ“ก โ„น"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. docs/em/docs/how-to/sql-databases-peewee.md

    ๐Ÿคš ๐Ÿ’ฒ ๐Ÿ™† ๐Ÿ”˜ ๐Ÿ”‘ (โœ… ๐Ÿ™† ๐Ÿ• ๐Ÿšš โฎ๏ธ ๐Ÿ“จ) โš™๏ธ:
    
    ```Python
    some_var.get()
    ```
    
    ### โš’ ๐Ÿ”‘ ๐Ÿ”ข `async` ๐Ÿ”— `reset_db_state()`
    
    ๐Ÿšฅ ๐Ÿ• ๐Ÿ” ๐Ÿ“Ÿ โš’ ๐Ÿ’ฒ โฎ๏ธ `some_var.set("updated in function")` (โœ… ๐Ÿ’– `async` ๐Ÿ”—), ๐ŸŽ‚ ๐Ÿ“Ÿ โšซ๏ธ & ๐Ÿ“Ÿ ๐Ÿ‘ˆ ๐Ÿšถ โฎ๏ธ (โœ… ๐Ÿ“Ÿ ๐Ÿ”˜ `async` ๐Ÿ”ข ๐Ÿค™ โฎ๏ธ `await`) ๐Ÿ”œ ๐Ÿ‘€ ๐Ÿ‘ˆ ๐Ÿ†• ๐Ÿ’ฒ.
    
    , ๐Ÿ‘† ๐Ÿ’ผ, ๐Ÿšฅ ๐Ÿ‘ฅ โš’ ๐Ÿ’ ๐Ÿ‡ต๐Ÿ‡ธ ๐Ÿ”ข (โฎ๏ธ ๐Ÿ”ข `dict`) `async` ๐Ÿ”—, ๐ŸŒ ๐ŸŽ‚ ๐Ÿ”— ๐Ÿ“Ÿ ๐Ÿ‘† ๐Ÿ“ฑ ๐Ÿ”œ ๐Ÿ‘€ ๐Ÿ‘‰ ๐Ÿ’ฒ & ๐Ÿ”œ ๐Ÿ’ช โ™ป โšซ๏ธ ๐ŸŽ‚ ๐Ÿ“จ.
    
    & ๐Ÿ”‘ ๐Ÿ”ข ๐Ÿ”œ โš’ ๐Ÿ”„ โญ ๐Ÿ“จ, ๐Ÿšฅ ๐Ÿ‘ซ ๐Ÿ› ๏ธ.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/internal/operations/MaxWorkersTest.groovy

            def workerLeaseService = this.workerLeaseService(maxWorkers)
            def processor = createProcessor(workerLeaseService, maxWorkers)
            def processorWorker = new SimpleWorker()
    
            when:
            async {
                start {
                    def cl = workerLeaseService.startWorker()
                    instant.worker1
                    thread.blockUntil.worker2Ready
                    thread.block()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/dataclasses.md

    8. Notice that this *path operation function* uses regular `def` instead of `async def`.
    
        As always, in FastAPI you can combine `def` and `async def` as needed.
    
        If you need a refresher about when to use which, check out the section _"In a hurry?"_ in the docs about [`async` and `await`](../async.md#in-a-hurry){.internal-link target=_blank}.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/dataclasses.md

    8. Beachten Sie, dass diese *Pfadoperation-Funktion* regulรคres `def` anstelle von `async def` verwendet.
    
        Wie immer kรถnnen Sie in FastAPI `def` und `async def` beliebig kombinieren.
    
        Wenn Sie eine Auffrischung darรผber benรถtigen, wann welche Anwendung sinnvoll ist, lesen Sie den Abschnitt โ€žIn Eile?โ€œ in der Dokumentation zu [`async` und `await`](../async.md#in-eile){.internal-link target=_blank}.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:18:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. tests/test_param_include_in_schema.py

    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/hidden_cookie")
    async def hidden_cookie(
        hidden_cookie: Optional[str] = Cookie(default=None, include_in_schema=False),
    ):
        return {"hidden_cookie": hidden_cookie}
    
    
    @app.get("/hidden_header")
    async def hidden_header(
        hidden_header: Optional[str] = Header(default=None, include_in_schema=False),
    ):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. .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)
  8. src/syscall/syscall_darwin.go

    //sys	Fchmod(fd int, mode uint32) (err error)
    //sys	Fchown(fd int, uid int, gid int) (err error)
    //sys	Flock(fd int, how int) (err error)
    //sys	Fpathconf(fd int, name int) (val int, err error)
    //sys	Fsync(fd int) (err error)
    //  Fsync is not called for os.File.Sync(). Please see internal/poll/fd_fsync_darwin.go
    //sys	Ftruncate(fd int, length int64) (err error)
    //sys	Getdtablesize() (size int)
    //sysnb	Getegid() (egid int)
    //sysnb	Geteuid() (uid int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultProjectStateRegistryTest.groovy

            def project = project("p1")
    
            createRootProject()
            def state = registry.stateFor(projectId("p1"))
            createProject(state, project)
    
            when:
            async {
                workerThread {
                    assert !state.hasMutableState()
                    state.applyToMutableState {
                        assert state.hasMutableState()
                        instant.start
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  10. 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)
Back to top