Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 20 for Concurrency (0.15 seconds)

  1. fastapi/concurrency.py

    from typing import TypeVar
    
    import anyio.to_thread
    from anyio import CapacityLimiter
    from starlette.concurrency import iterate_in_threadpool as iterate_in_threadpool  # noqa
    from starlette.concurrency import run_in_threadpool as run_in_threadpool  # noqa
    from starlette.concurrency import (  # noqa
        run_until_first_complete as run_until_first_complete,
    )
    
    _T = TypeVar("_T")
    
    
    @asynccontextmanager
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/TestThread.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * A helper for concurrency testing. One or more {@code TestThread} instances are instantiated in a
     * test with reference to the same "lock-like object", and then their interactions with that object
     * are choreographed via the various methods on this class.
     *
     * <p>A "lock-like object" is really any object that may be used for concurrency control. If the
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 21:00:51 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * A helper for concurrency testing. One or more {@code TestThread} instances are instantiated in a
     * test with reference to the same "lock-like object", and then their interactions with that object
     * are choreographed via the various methods on this class.
     *
     * <p>A "lock-like object" is really any object that may be used for concurrency control. If the
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 21:00:51 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * factor, and concurrency settings.
       */
      public static <E> ConcurrentHashMultiset<E> create() {
        return create(new ConcurrentHashMap<>());
      }
    
      /**
       * Creates a new {@code ConcurrentHashMultiset} containing the specified elements, using the
       * default initial capacity, load factor, and concurrency settings.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Dec 08 22:42:14 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  5. docs/es/docs/async.md

    # Concurrencia y async / await { #concurrency-and-async-await }
    
    Detalles sobre la sintaxis `async def` para *path operation functions* y algunos antecedentes sobre el código asíncrono, la concurrencia y el paralelismo.
    
    ## ¿Con prisa? { #in-a-hurry }
    
    <abbr title="too long; didn't read"><strong>TL;DR:</strong></abbr>
    
    Si estás usando paquetes de terceros que te dicen que los llames con `await`, como:
    
    ```Python
    results = await some_library()
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 10:15:01 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  6. pyproject.toml

        ]
    
    [tool.tiangolo._internal-slim-build.packages.fastapi-slim.project]
    name = "fastapi-slim"
    
    [tool.mypy]
    plugins = ["pydantic.mypy"]
    strict = true
    
    [[tool.mypy.overrides]]
    module = "fastapi.concurrency"
    warn_unused_ignores = false
    ignore_missing_imports = true
    
    [[tool.mypy.overrides]]
    module = "fastapi.tests.*"
    ignore_missing_imports = true
    check_untyped_defs = true
    
    [[tool.mypy.overrides]]
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  7. .github/workflows/contributor-pr.yml

    name: Contributor CI Build
    
    on:
      push:
        branches:
          - master
      pull_request:
        branches:
          - master
    
    concurrency:
      # On master/release, we don't want any jobs cancelled so the sha is used to name the group
      group: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release' ) && format('contributor-pr-base-{0}', github.sha) || format('contributor-pr-{0}', github.ref) }}
      cancel-in-progress: false
    
    env:
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Sun Dec 14 14:03:48 GMT 2025
    - 5K bytes
    - Click Count (0)
  8. tests/test_dependency_wrapped.py

    import inspect
    import sys
    from collections.abc import AsyncGenerator, Generator
    from functools import wraps
    
    import pytest
    from fastapi import Depends, FastAPI
    from fastapi.concurrency import iterate_in_threadpool, run_in_threadpool
    from fastapi.testclient import TestClient
    
    if sys.version_info >= (3, 13):  # pragma: no cover
        from inspect import iscoroutinefunction
    else:  # pragma: no cover
        from asyncio import iscoroutinefunction
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  9. fastapi/dependencies/utils.py

        is_uploadfile_sequence_annotation,
        lenient_issubclass,
        sequence_types,
        serialize_sequence_value,
        value_is_sequence,
    )
    from fastapi.background import BackgroundTasks
    from fastapi.concurrency import (
        asynccontextmanager,
        contextmanager_in_threadpool,
    )
    from fastapi.dependencies.models import Dependant
    from fastapi.exceptions import DependencyScopeError
    from fastapi.logger import logger
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 37.6K bytes
    - Click Count (3)
  10. .github/workflows/maven.yml

    # under the License.
    
    name: Java CI
    
    on:
      push:
        branches: [ master ]
      pull_request:
        branches: [ master ]
    
    # allow single build per branch or PR
    concurrency:
      group: ${{ github.workflow }}-${{ github.ref }}
      cancel-in-progress: true
    
    # clear all permissions for GITHUB_TOKEN
    permissions: {}
    
    env:
      MIMIR_VERSION: 0.10.6
      MIMIR_BASEDIR: ~/.mimir
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 16 04:24:24 GMT 2025
    - 12.2K bytes
    - Click Count (0)
Back to Top