Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 30 for lazyInit (0.13 seconds)

  1. internal/config/lambda/target/lazyinit.go

    // Inspired from Golang sync.Once but it is only marked
    // initialized when the provided function returns nil.
    
    type lazyInit struct {
    	done uint32
    	m    sync.Mutex
    }
    
    func (l *lazyInit) Do(f func() error) error {
    	if atomic.LoadUint32(&l.done) == 0 {
    		return l.doSlow(f)
    	}
    	return nil
    }
    
    func (l *lazyInit) doSlow(f func() error) error {
    	l.m.Lock()
    	defer l.m.Unlock()
    	if atomic.LoadUint32(&l.done) == 0 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 1.3K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/AbstractMultimap.java

      }
    
      @LazyInit private transient @Nullable Set<K> keySet;
    
      @Override
      public Set<K> keySet() {
        Set<K> result = keySet;
        return (result == null) ? keySet = createKeySet() : result;
      }
    
      abstract Set<K> createKeySet();
    
      @LazyInit private transient @Nullable Multiset<K> keys;
    
      @Override
      public Multiset<K> keys() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/DescendingMultiset.java

      @LazyInit private transient @Nullable Comparator<? super E> comparator;
    
      @Override
      public Comparator<? super E> comparator() {
        Comparator<? super E> result = comparator;
        if (result == null) {
          result = Ordering.from(forwardMultiset().comparator()).reverse();
          comparator = result;
        }
        return result;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/AbstractMultimap.java

        }
      }
    
      abstract Iterator<Entry<K, V>> entryIterator();
    
      @LazyInit private transient @Nullable Set<K> keySet;
    
      @Override
      public Set<K> keySet() {
        Set<K> result = keySet;
        return (result == null) ? keySet = createKeySet() : result;
      }
    
      abstract Set<K> createKeySet();
    
      @LazyInit private transient @Nullable Multiset<K> keys;
    
      @Override
      public Multiset<K> keys() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java

    import com.google.common.collect.HashMultiset;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.Multiset;
    import com.google.errorprone.annotations.concurrent.LazyInit;
    import java.lang.ref.Reference;
    import java.lang.ref.SoftReference;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 4.6K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/NaturalOrdering.java

      /*
       * TODO: b/287198172 - Consider eagerly initializing these, maybe making them static. But that
       * would lead to at least slighly more work at startup time.
       */
      @LazyInit private transient @Nullable Ordering<@Nullable Comparable<?>> nullsFirst;
      @LazyInit private transient @Nullable Ordering<@Nullable Comparable<?>> nullsLast;
    
      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 01:34:19 GMT 2026
    - 3K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/DescendingMultiset.java

      @LazyInit private transient @Nullable Comparator<? super E> comparator;
    
      @Override
      public Comparator<? super E> comparator() {
        Comparator<? super E> result = comparator;
        if (result == null) {
          result = Ordering.from(forwardMultiset().comparator()).reverse();
          comparator = result;
        }
        return result;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/AbstractMultiset.java

    import static com.google.common.collect.Multisets.setCountImpl;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.concurrent.LazyInit;
    import com.google.j2objc.annotations.WeakOuter;
    import java.util.AbstractCollection;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/AbstractMultiset.java

    import static com.google.common.collect.Multisets.setCountImpl;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.concurrent.LazyInit;
    import com.google.j2objc.annotations.WeakOuter;
    import java.util.AbstractCollection;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/NaturalOrdering.java

      /*
       * TODO: b/287198172 - Consider eagerly initializing these, maybe making them static. But that
       * would lead to at least slighly more work at startup time.
       */
      @LazyInit private transient @Nullable Ordering<@Nullable Comparable<?>> nullsFirst;
      @LazyInit private transient @Nullable Ordering<@Nullable Comparable<?>> nullsLast;
    
      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 01:34:19 GMT 2026
    - 3K bytes
    - Click Count (0)
Back to Top