Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,092 for once (0.02 sec)

  1. internal/once/singleton.go

    package once
    
    // Singleton contains a pointer to T that must be set once.
    // Until the value is set all Get() calls will block.
    type Singleton[T any] struct {
    	v   *T
    	set chan struct{}
    }
    
    // NewSingleton creates a new unset singleton.
    func NewSingleton[T any]() *Singleton[T] {
    	return &Singleton[T]{set: make(chan struct{}), v: nil}
    }
    
    // Get will return the singleton value.
    func (s *Singleton[T]) Get() *T {
    	<-s.set
    	return s.v
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 952 bytes
    - Viewed (0)
  2. internal/cachevalue/cache.go

    	// If an error is returned the cached value is not set.
    	// Only one caller will call this function at any time, others will be blocking.
    	// The returned value can no longer be modified once returned.
    	// Should be set before calling Get().
    	updateFn func(ctx context.Context) (T, error)
    
    	// ttl for a cached value.
    	ttl time.Duration
    
    	opts Opts
    
    	// Once can be used to initialize values for lazy initialization.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 12:50:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. internal/once/init.go

    package once
    
    import (
    	"context"
    	"sync"
    	"sync/atomic"
    )
    
    // Inspired from Golang sync.Once but it is only marked
    // initialized when the provided function returns nil.
    
    // Init represents the structure.
    type Init struct {
    	done uint32
    	m    sync.Mutex
    }
    
    // Do is similar to sync.Once.Do - makes one successful
    // call to the function. ie, it invokes the function
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 09 04:20:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. .teamcity/mvnw.cmd

    @REM set %HOME% to equivalent of $HOME
    if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
    
    @REM Execute a user defined script before this one
    if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
    @REM check for pre script, once with legacy .bat ending and once with .cmd ending
    if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
    if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
    :skipRcPre
    
    @setlocal
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Feb 26 01:48:39 UTC 2020
    - 6.5K bytes
    - Viewed (0)
  5. internal/ioutil/wait_pipe.go

    	"sync"
    )
    
    // PipeWriter is similar to io.PipeWriter with wait group
    type PipeWriter struct {
    	*io.PipeWriter
    	once sync.Once
    	done func()
    }
    
    // CloseWithError close with supplied error the writer end.
    func (w *PipeWriter) CloseWithError(err error) error {
    	err = w.PipeWriter.CloseWithError(err)
    	w.once.Do(func() {
    		w.done()
    	})
    	return err
    }
    
    // PipeReader is similar to io.PipeReader with wait group
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 27 14:55:36 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. architecture/build-state-model.md

    ### Build session state
    
    A "build session" represents a single invocation of Gradle, for example when you run `gradlew build`.
    A session runs the build one or more times.
    For example, when continuous build is enabled, the session may run the build many times, but when it is disabled, the session will run the build once only.
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed May 22 13:39:49 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. docs/distributed/DECOMMISSION.md

    ```
    
    ### Decommissioning status
    
    ```
    λ mc admin decommission status alias/ http://minio{1...2}/data{1...4}
    Decommissioning rate at 36 MiB/sec [4 TiB/50 TiB]
    Started: 1 minute ago
    ```
    
    Once it is **Complete**
    
    ```
    λ mc admin decommission status alias/ http://minio{1...2}/data{1...4}
    Decommission of pool http://minio{1...2}/data{1...4} is complete, you may now remove it from server command line
    ```
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 11 14:59:49 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  8. docs/bucket/lifecycle/DESIGN.md

    ## Implementation
    
    ILM tiering takes place when a object placed in the bucket meets lifecycle transition rules and becomes eligible for tiering. MinIO scanner (which runs at one minute intervals, each time scanning one sixteenth of the namespace), picks up the object for tiering. The data is moved to the remote tier in entirety, leaving only the object metadata on MinIO.
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 29 04:28:45 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  9. src/arena/arena.go

    // Arenas are useful for improving efficiency as they may be freed back to
    // the runtime manually, though any memory obtained from freed arenas must
    // not be accessed once that happens. An Arena is automatically freed once
    // it is no longer referenced, so it must be kept alive (see runtime.KeepAlive)
    // until any memory allocated from it is no longer needed.
    //
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 12 20:23:36 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  10. docs/tr/docs/history-design-future.md

    # Geçmişi, Tasarımı ve Geleceği
    
    Bir süre önce, <a href="https://github.com/fastapi/fastapi/issues/3#issuecomment-454956920" class="external-link" target="_blank">bir **FastAPI** kullanıcısı sordu</a>:
    
    > Bu projenin geçmişi nedir? Birkaç hafta içinde hiçbir yerden harika bir şeye dönüşmüş gibi görünüyor [...]
    
    İşte o geçmişin bir kısmı.
    
    ## Alternatifler
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top