Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 124 for Coroutine (0.08 sec)

  1. internal/http/listener.go

    	acceptCh    chan acceptResult // channel where all TCP listeners write accepted connection.
    	ctxDoneCh   <-chan struct{}
    	ctxCanceler context.CancelFunc
    }
    
    // start - starts separate goroutine for each TCP listener.  A valid new connection is passed to httpListener.acceptCh.
    func (listener *httpListener) start() {
    	// Closure to handle listener until httpListener.ctxDoneCh channel is closed.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. internal/lru/lru.go

    	for i := 0; i < numBuckets; i++ {
    		res.buckets[i] = bucket[K, V]{entries: make(map[K]*Entry[K, V])}
    	}
    
    	// enable deleteExpired() running in separate goroutine for cache with non-zero TTL
    	//
    	// Important: done channel is never closed, so deleteExpired() goroutine will never exit,
    	// it's decided to add functionality to close it in the version later than v2.
    	if res.ttl != noEvictionTTL {
    		go func(done <-chan struct{}) {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. internal/grid/muxserver.go

    	for range outboundCap {
    		m.outBlock <- struct{}{}
    	}
    
    	// Handler goroutine.
    	var handlerErr atomic.Pointer[RemoteErr]
    	go func() {
    		wg.Wait()
    		defer xioutil.SafeClose(send)
    		err := m.handleRequests(ctx, msg, send, handler, handlerIn)
    		if err != nil {
    			handlerErr.Store(err)
    		}
    	}()
    
    	// Response sender goroutine...
    	go func(outBlock <-chan struct{}) {
    		wg.Wait()
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  4. okhttp/src/jvmMain/java9/module-info.java

      requires transitive okio;
      requires java.logging;
      exports okhttp3;
      exports okhttp3.internal to okhttp3.logging, okhttp3.sse, okhttp3.java.net.cookiejar, okhttp3.dnsoverhttps, mockwebserver3, okhttp3.mockwebserver, okhttp3.coroutines, okhttp3.tls;
      exports okhttp3.internal.concurrent to mockwebserver3, okhttp3.mockwebserver;
      exports okhttp3.internal.connection to mockwebserver3, okhttp3.mockwebserver, okhttp3.logging;
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Sep 21 08:30:26 UTC 2025
    - 969 bytes
    - Viewed (0)
  5. fastapi/dependencies/models.py

        def is_coroutine_callable(self) -> bool:
            if self.call is None:
                return False  # pragma: no cover
            if inspect.isroutine(_impartial(self.call)) and iscoroutinefunction(
                _impartial(self.call)
            ):
                return True
            if inspect.isroutine(_unwrapped_call(self.call)) and iscoroutinefunction(
                _unwrapped_call(self.call)
            ):
                return True
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. settings.gradle.kts

    }
    
    if (graalBuild.toBoolean()) {
      include(":native-image-tests")
    }
    
    include(":okcurl")
    include(":okhttp")
    include(":okhttp-bom")
    include(":okhttp-brotli")
    include(":okhttp-coroutines")
    include(":okhttp-dnsoverhttps")
    include(":okhttp-hpacktests")
    include(":okhttp-idna-mapping-table")
    include(":okhttp-java-net-cookiejar")
    include(":okhttp-logging-interceptor")
    include(":okhttp-osgi-tests")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Oct 11 09:17:37 UTC 2025
    - 2K bytes
    - Viewed (0)
  7. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt

     * limitations under the License.
     */
    package okhttp3.survey
    
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.coroutines.executeAsync
    import okhttp3.survey.types.SuiteId
    import okio.ByteString.Companion.decodeHex
    import okio.IOException
    
    /** Example: "0x00,0x08",TLS_RSA_EXPORT_WITH_DES40_CBC_SHA,Y,N,[RFC4346] */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  8. cmd/erasure.go

    			bucketCh <- b
    		}
    	}
    	xioutil.SafeClose(bucketCh)
    
    	bucketResults := make(chan dataUsageEntryInfo, len(disks))
    
    	// Start async collector/saver.
    	// This goroutine owns the cache.
    	var saverWg sync.WaitGroup
    	saverWg.Add(1)
    	go func() {
    		// Add jitter to the update time so multiple sets don't sync up.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  9. cmd/shared-lock.go

    	ctx, cancel := context.WithCancel(context.Background())
    	go func() {
    		select {
    		case <-ctx1.Done():
    		case <-ctx2.Done():
    		// The lock acquirer decides to cancel, exit this goroutine
    		case <-ctx.Done():
    		}
    
    		cancel()
    	}()
    	return ctx, cancel
    }
    
    func (ld sharedLock) GetLock(ctx context.Context) (context.Context, context.CancelFunc) {
    	l := <-ld.lockContext
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Feb 13 09:26:38 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. internal/s3select/progress.go

    	closedMu sync.Mutex
    	closer   io.ReadCloser
    	closed   bool
    }
    
    func (pr *progressReader) Read(p []byte) (n int, err error) {
    	// This ensures that Close will block until Read has completed.
    	// This allows another goroutine to close the reader.
    	pr.closedMu.Lock()
    	defer pr.closedMu.Unlock()
    	if pr.closed {
    		return 0, errors.New("progressReader: read after Close")
    	}
    	return pr.processedReader.Read(p)
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top