Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 321 for Concurrency (0.17 sec)

  1. fastapi/concurrency.py

    from typing import AsyncGenerator, ContextManager, TypeVar
    
    import anyio
    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
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Dec 25 17:57:35 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. src/embed/internal/embedtest/concurrency.txt

    Concurrency is not parallelism....
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 29 16:26:43 UTC 2020
    - 32 bytes
    - Viewed (0)
  3. docs/contribute/concurrency.md

    Concurrency
    ===========
    
    This document describes the concurrency considerations for http/2 connections and the connection pool within OkHttp.
    
    ## HTTP/2 Connections
    
    The HttpURLConnection API is a blocking API. You make a blocking write to send a request, and a blocking read to receive the response.
    
    #### Blocking APIs
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 16:35:36 UTC 2022
    - 7K bytes
    - Viewed (0)
  4. releasenotes/notes/fix-concurrency.yaml

        
        In this release, concurrency configuration has been tweaked to be consistent across deployment types.
        The new logic will use the `ProxyConfig.Concurrency` setting (which can be configured mesh wide or per-pod), if set,
        and otherwise set concurrency based on the CPU limit allocated to the container
        For example, a limit of 2500m would set concurrency to 3.
        
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 13 11:53:23 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. src/embed/internal/embedtest/embedx_test.go

    	}
    }
    
    func TestXGlobal(t *testing.T) {
    	testFiles(t, global, "testdata/hello.txt", "hello, world\n")
    	testString(t, concurrency, "concurrency", "Concurrency is not parallelism.\n")
    	testString(t, string(glass), "glass", "I can eat glass and it doesn't hurt me.\n")
    	testString(t, concurrency2, "concurrency2", "Concurrency is not parallelism.\n")
    	testString(t, string(glass2), "glass2", "I can eat glass and it doesn't hurt me.\n")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 15 20:37:17 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  6. pilot/pkg/model/proxy_config_test.go

    		expected *meshconfig.ProxyConfig
    	}{
    		{
    			name: "concurrency",
    			first: &meshconfig.ProxyConfig{
    				Concurrency: v(1),
    			},
    			second: &meshconfig.ProxyConfig{
    				Concurrency: v(2),
    			},
    			expected: &meshconfig.ProxyConfig{
    				Concurrency: v(1),
    			},
    		},
    		{
    			name: "concurrency value 0",
    			first: &meshconfig.ProxyConfig{
    				Concurrency: v(0),
    			},
    			second: &meshconfig.ProxyConfig{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 21 01:23:19 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  7. cmd/speedtest.go

    	go func() {
    		defer xioutil.SafeClose(ch)
    
    		concurrency := opts.concurrencyStart
    
    		if opts.autotune {
    			// if we have less drives than concurrency then choose
    			// only the concurrency to be number of drives to start
    			// with - since default '32' might be big and may not
    			// complete in total time of 10s.
    			if globalEndpoints.NEndpoints() < concurrency {
    				concurrency = globalEndpoints.NEndpoints()
    			}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 09:45:10 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/lazy/LazyTest.groovy

            int concurrency = 20
            AtomicInteger total = addAndGetLazyConcurrently(concurrency, lazy)
    
            then: 'all threads observe the same value'
            total.get() % concurrency == 0
        }
    
        private AtomicInteger addAndGetLazyConcurrently(int concurrency, Lazy<Integer> lazy) {
            def total = new AtomicInteger()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:22:02 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/Uninterruptibles.java

      // methods is identical, save for method being invoked.
    
      /** Invokes {@code latch.}{@link CountDownLatch#await() await()} uninterruptibly. */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      public static void awaitUninterruptibly(CountDownLatch latch) {
        boolean interrupted = false;
        try {
          while (true) {
            try {
              latch.await();
              return;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/ManualEvictionInMemoryCacheTest.groovy

        @Timeout(value = 5, unit = TimeUnit.SECONDS)
        def "supports #concurrency concurrent computations"() {
            def latch = new CountDownLatch(concurrency)
            def executor = Executors.newFixedThreadPool(concurrency)
            def cache = new ManualEvictionInMemoryCache<String, String>()
    
            when:
            concurrency.times { idx ->
                executor.submit {
                    String key = "key${idx}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top