Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for putLater (0.14 sec)

  1. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/InMemoryDecoratedCacheTest.groovy

        def "does not produce value when present in memory and marks completed"() {
            def producer = Mock(Function)
            def completion = Mock(Runnable)
    
            given:
            cache.putLater("key", "value", Stub(Runnable))
    
            when:
            def result = cache.get("key", producer, completion)
    
            then:
            result == "value"
    
            and:
            1 * completion.run()
            0 * _
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/InMemoryDecoratedCache.java

                return null;
            } else {
                return Cast.uncheckedCast(value);
            }
        }
    
        @Override
        public void putLater(K key, V value, Runnable completion) {
            inMemoryCache.put(key, value);
            delegate.putLater(key, value, completion);
        }
    
        @Override
        public void removeLater(K key, Runnable completion) {
            inMemoryCache.put(key, NULL);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CrossProcessSynchronizingIndexedCache.java

            return target.get(key, producer, runnable);
        }
    
        @Override
        public void put(K key, V value) {
            Runnable runnable = cacheAccess.acquireFileLock();
            target.putLater(key, value, runnable);
        }
    
        @Override
        public void remove(K key) {
            Runnable runnable = cacheAccess.acquireFileLock();
            target.removeLater(key, runnable);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/MultiProcessSafeAsyncPersistentIndexedCache.java

        /**
         * Submits an update to be applied later. This method may or may not block, and will invoke the given completion action when the operation is complete.
         */
        void putLater(K key, V value, Runnable completion);
    
        /**
         * Submits a removal to be applied later. This method may or may not block, and will invoke the given completion action when the operation is complete.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/AsyncCacheAccessDecoratedCache.java

        }
    
        @Override
        public V get(K key, Function<? super K, ? extends V> producer, Runnable completion) {
            throw new UnsupportedOperationException();
        }
    
        @Override
        public void putLater(final K key, final V value, final Runnable completion) {
            try {
                asyncCacheAccess.enqueue(() -> {
                    try {
                        indexedCache.put(key, value);
                    } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. src/cmd/internal/dwarf/dwarf.go

    	}
    
    	putattr(ctxt, s.Info, DW_ABRV_FUNCTION, DW_FORM_string, DW_CLS_STRING, int64(len(name)), name)
    	putattr(ctxt, s.Info, abbrev, DW_FORM_addr, DW_CLS_ADDRESS, 0, s.StartPC)
    	putattr(ctxt, s.Info, abbrev, DW_FORM_addr, DW_CLS_ADDRESS, s.Size, s.StartPC)
    	putattr(ctxt, s.Info, abbrev, DW_FORM_block1, DW_CLS_BLOCK, 1, []byte{DW_OP_call_frame_cfa})
    	if isWrapper {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 43K bytes
    - Viewed (0)
  7. src/cmd/internal/dwarf/putvarabbrevgen_test.go

    				funstr := exprToString(x.Fun)
    				if funstr == "putattr" {
    					form, _ := x.Args[3].(*ast.Ident)
    					if form == nil {
    						t.Fatalf("%s invalid use of putattr", fset.Position(x.Pos()))
    					}
    					cmt := findLineComment(cm, stmt)
    					if cmt == nil {
    						t.Fatalf("%s invalid use of putattr (no comment containing the attribute name)", fset.Position(x.Pos()))
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top