Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for tryUpdate (0.11 sec)

  1. pkg/registry/core/service/allocator/storage/storage.go

    	e.lock.Lock()
    	defer e.lock.Unlock()
    
    	return e.tryUpdate(func() error {
    		return e.alloc.Release(item)
    	})
    
    }
    
    func (e *Etcd) ForEach(fn func(int)) {
    	e.lock.Lock()
    	defer e.lock.Unlock()
    	e.alloc.ForEach(fn)
    }
    
    // tryUpdate performs a read-update to persist the latest snapshot state of allocation.
    func (e *Etcd) tryUpdate(fn func() error) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 6.5K bytes
    - Viewed (0)
Back to top