Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 127 for goroutines (0.21 seconds)

  1. 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
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Feb 13 09:26:38 GMT 2023
    - 2.3K bytes
    - Click Count (0)
  2. docs/works_with_okhttp.md

     * [Chucker](https://github.com/ChuckerTeam/chucker): An in-app HTTP inspector for Android OkHttp clients.
     * [Coil](https://github.com/coil-kt/coil): An image loading library for Android backed by Kotlin Coroutines.
     * [Communicator](https://github.com/Taig/Communicator): An OkHttp wrapper for Scala built with Android in mind.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 26 07:59:38 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  3. cmd/signals.go

    		}
    
    		os.Exit(1)
    	}
    
    	stopProcess := func() bool {
    		shutdownHealMRFWithTimeout() // this can take time sometimes, it needs to be executed
    		// before stopping s3 operations
    
    		// send signal to various go-routines that they need to quit.
    		cancelGlobalContext()
    
    		if httpServer := newHTTPServerFn(); httpServer != nil {
    			if err := httpServer.Shutdown(); err != nil && !errors.Is(err, http.ErrServerClosed) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Sep 04 17:02:39 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  4. 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)
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 22 00:33:43 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  5. CHANGELOG/CHANGELOG-1.13.md

    * Resolves bottleneck in internal API server communication that can cause increased goroutines and degrade API Server performance ([#80465](https://github.com/kubernetes/kubernetes/pull/80465), [@answer1991](https://github.com/answer1991))
    Created: Fri Dec 26 09:05:12 GMT 2025
    - Last Modified: Thu May 05 13:44:43 GMT 2022
    - 273.1K bytes
    - Click Count (0)
  6. cmd/namespace-lock_test.go

    		// lk2
    		lk2ch := make(chan struct{})
    		go func() {
    			defer close(lk2ch)
    			nsLk.lock(ctx, "volume", "path", "source", "opsID", false, 1*time.Millisecond)
    		}()
    		time.Sleep(1 * time.Millisecond) // wait for goroutine to advance; ref=2
    
    		// Unlock the 1st lock; ref=1 after this line
    		nsLk.unlock("volume", "path", false)
    
    		// Taking another lockMapMutex here allows queuing up additional lockers. This should
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 3K bytes
    - Click Count (0)
  7. build-logic/dependency-modules/src/main/kotlin/gradlebuild/modules/extension/ExternalModulesExtension.kt

        val joptSimple = "net.sf.jopt-simple:jopt-simple"
        val jsoup = "org.jsoup:jsoup"
        val jtar = "org.kamranzafar:jtar"
        val kotlinCoroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm"
        val kotlinCoroutinesDebug = "org.jetbrains.kotlinx:kotlinx-coroutines-debug"
        val littleproxy = "xyz.rogfam:littleproxy"
        val mockitoCore = "org.mockito:mockito-core"
        val mockitoKotlin = "org.mockito.kotlin:mockito-kotlin"
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Dec 19 06:45:52 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  8. internal/rest/client.go

    		sleep := min(unit*time.Duration(1<<attempt), maxSleep)
    		sleep -= time.Duration(r.Float64() * float64(sleep-unit))
    		return sleep
    	}
    }
    
    func (c *Client) runHealthCheck() bool {
    	// Start goroutine that will attempt to reconnect.
    	// If server is already trying to reconnect this will have no effect.
    	if c.HealthCheckFn != nil && atomic.CompareAndSwapInt32(&c.connected, online, offline) {
    		go func() {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  9. internal/ringbuffer/ring_buffer.go

    )
    
    // RingBuffer is a circular buffer that implement io.ReaderWriter interface.
    // It operates like a buffered pipe, where data written to a RingBuffer
    // and can be read back from another goroutine.
    // It is safe to concurrently read and write RingBuffer.
    type RingBuffer struct {
    	buf       []byte
    	size      int
    	r         int // next position to read
    	w         int // next position to write
    	isFull    bool
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  10. cmd/metrics-v3-system-process.go

    	processCPUTotalSecondsMD          = NewCounterMD(processCPUTotalSeconds, "Total user and system CPU time spent in seconds")
    	processGoRoutineTotalMD           = NewGaugeMD(processGoRoutineTotal, "Total number of go routines running")
    	processIORCharBytesMD             = NewCounterMD(processIORCharBytes, "Total bytes read by the process from the underlying storage system including cache, /proc/[pid]/io rchar")
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Jun 20 17:55:03 GMT 2024
    - 6.5K bytes
    - Click Count (0)
Back to Top