Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 20 for pthreadpool (0.42 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

        int deltaRange = 10000;
        String key = "key";
    
        AtomicLongMap<String> map = AtomicLongMap.create();
    
        ExecutorService threadPool = newFixedThreadPool(nThreads);
        ArrayList<Future<Long>> futures = new ArrayList<>();
        for (int i = 0; i < nTasks; i++) {
          futures.add(
              threadPool.submit(
                  new Callable<Long>() {
                    @Override
                    public Long call() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

        int deltaRange = 10000;
        String key = "key";
    
        AtomicLongMap<String> map = AtomicLongMap.create();
    
        ExecutorService threadPool = newFixedThreadPool(nThreads);
        ArrayList<Future<Long>> futures = new ArrayList<>();
        for (int i = 0; i < nTasks; i++) {
          futures.add(
              threadPool.submit(
                  new Callable<Long>() {
                    @Override
                    public Long call() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  3. fastapi/datastructures.py

            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().seek(offset)
    
        async def close(self) -> None:
            """
            Close the file.
    
            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().close()
    
        @classmethod
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  4. .teamcity/scripts/CheckWrapper.java

     *   java .teamcity/scripts/CheckWrapper.java < commits.txt
     *
     * Reads commit SHAs from stdin (one per line), checks wrapper per commit.
     */
    public class CheckWrapper {
        private static final ExecutorService THREAD_POOL = Executors.newCachedThreadPool();
    
        private static final Pattern ALLOWED_WRAPPER_VERSION =
            Pattern.compile("^[0-9.]+(-(rc|milestone|m)-[0-9]+)?$");
    
        // Keep the same extraction semantics as the old sed:
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jan 20 03:53:25 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  5. .teamcity/scripts/CheckBadMerge.java

     *
     * If any "bad" merge commit is found, it will print the details and exit with non-zero code.
     */
    public class CheckBadMerge {
        private static final ExecutorService THREAD_POOL = Executors.newCachedThreadPool();
    
        private static final List<String> MONITORED_PATHS = Collections.unmodifiableList(Arrays.asList(
            "subprojects/docs/src/docs/release/notes.md",
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 30 16:25:09 GMT 2026
    - 9K bytes
    - Click Count (0)
  6. src/main/java/jcifs/SmbResourceException.java

        private static final long serialVersionUID = 1L;
    
        /**
         * Resource type that caused the error
         */
        public enum ResourceType {
            FILE_HANDLE, CONNECTION, MEMORY, DISK_SPACE, QUOTA, LOCK, BUFFER, THREAD_POOL
        }
    
        private final ResourceType resourceType;
        private final long availableResources;
        private final long requestedResources;
    
        /**
         * Creates a resource exception
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/resources/forbidden/es-all-signatures.txt

    @defaultMessage extend org.elasticsearch.threadpool.Scheduler.SafeScheduledThreadPoolExecutor instead which will properly bubble up Errors
    java.util.concurrent.ScheduledThreadPoolExecutor#<init>(int)
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 15:21:26 GMT 2021
    - 3.8K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/resources/checkstyle.xml

            <property name="ignoreSetter" value="true" />
            <property name="setterCanReturnItsClass" value="true"/>
            <property name="ignoreFormat" value="^(threadPool)$"/>
        </module>
        -->
    
        <!-- We don't use Java's builtin serialization and we suppress all warning
          about it. The flip side of that coin is that we shouldn't _try_ to use
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 13 12:48:46 GMT 2021
    - 6K bytes
    - Click Count (0)
  9. docs/ru/docs/advanced/stream-data.md

    ///
    
    Чтобы не блокировать цикл событий, вы можете просто объявить *функцию-обработчик пути* обычной `def` вместо `async def`. Тогда FastAPI выполнит её в воркере из пула потоков (threadpool), чтобы не блокировать основной цикл.
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[30:34] hl[31] *}
    
    /// tip | Совет
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  10. docs/es/docs/advanced/stream-data.md

    ///
    
    Para evitar bloquear el event loop, puedes simplemente declarar la *path operation function* con un `def` normal en lugar de `async def`; de esa forma FastAPI la ejecutará en un worker de threadpool para evitar bloquear el loop principal.
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[30:34] hl[31] *}
    
    /// tip | Consejo
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:12:26 GMT 2026
    - 5.7K bytes
    - Click Count (0)
Back to Top