Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for _finalize (0.07 sec)

  1. guava-testlib/src/com/google/common/testing/GcFinalization.java

       * separate method to make it somewhat more likely to be unreachable.
       */
      private static void createUnreachableLatchFinalizer(CountDownLatch latch) {
        Object unused =
            new Object() {
              @SuppressWarnings({"removal", "Finalize"}) // b/260137033
              @Override
              protected void finalize() {
                latch.countDown();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

       * separate method to make it somewhat more likely to be unreachable.
       */
      private static void createUnreachableLatchFinalizer(CountDownLatch latch) {
        Object unused =
            new Object() {
              @SuppressWarnings({"removal", "Finalize"}) // b/260137033
              @Override
              protected void finalize() {
                latch.countDown();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        GcFinalization.awaitClear(finalizableWeakReference);
    
        Field sepFrqUserFinalizedF = sepFrqUserC.getField("finalized");
        Semaphore finalizeCount = (Semaphore) sepFrqUserFinalizedF.get(null);
        boolean finalized = finalizeCount.tryAcquire(5, SECONDS);
        assertTrue(finalized);
    
        Field sepFrqUserFrqF = sepFrqUserC.getField("frq");
        Closeable frq = (Closeable) sepFrqUserFrqF.get(null);
        frq.close();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/FinalizableReferenceQueue.java

      /**
       * Iterates through the given loaders until it finds one that can load Finalizer.
       *
       * @return Finalizer.class
       */
      private static Class<?> loadFinalizer(FinalizerLoader... loaders) {
        for (FinalizerLoader loader : loaders) {
          Class<?> finalizer = loader.loadFinalizer();
          if (finalizer != null) {
            return finalizer;
          }
        }
    
        throw new AssertionError();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 11 20:51:36 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. tests/test_dependency_contextmanager.py

            state["/async_raise"] = "asyncgen raise finalized"
    
    
    def generator_state_try(state: Dict[str, str] = Depends(get_state)):
        state["/sync_raise"] = "generator raise started"
        try:
            yield state["/sync_raise"]
        except SyncDependencyError:
            errors.append("/sync_raise")
            raise
        finally:
            state["/sync_raise"] = "generator raise finalized"
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:13:50 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. docs/pt/docs/async.md

    Ao invés disso, sendo um sistema "assíncrono", uma vez finalizada, a tarefa pode esperar um pouco (alguns microssegundos) para que o computador / programa finalize o que quer que esteja fazendo,e então volte para pegar o resultado e continue trabalhando com ele.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        oos.writeObject(map);
        oos.flush();
    
        int mapSize = bytes.size();
        oos.writeObject(keySet);
        oos.writeObject(values);
        oos.close();
    
        int finalSize = bytes.size();
    
        assertThat(finalSize - mapSize).isLessThan(100);
      }
    
      // TODO: Re-enable this test after moving to new serialization format in ImmutableMap.
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeImpl.java

            System.arraycopy(stackTrace, s, res, 0, e - s);
            return res;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#finalize()
         */
        @Override
        protected void finalize () throws Throwable {
            if ( isConnected() && this.usageCount.get() != 0 ) {
                log.warn("Tree was not properly released");
            }
        }
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:06:39 UTC 2023
    - 29.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/transport/Transport.java

                throw new RuntimeCIFSException("Usage count dropped below zero");
            }
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#finalize()
         */
        @Override
        protected void finalize () throws Throwable {
            if ( !isDisconnected() && this.usageCount.get() != 0 ) {
                log.warn("Session was not properly released");
            }
        }
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 01 18:12:21 UTC 2020
    - 24.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        oos.writeObject(map);
        oos.flush();
    
        int mapSize = bytes.size();
        oos.writeObject(keySet);
        oos.writeObject(values);
        oos.close();
    
        int finalSize = bytes.size();
    
        assertThat(finalSize - mapSize).isLessThan(100);
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                ImmutableMap.of(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
Back to top