Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 307 for dong (0.02 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

        private val body: Sink
        var done = false
    
        init {
          this.body =
            object : ForwardingSink(cacheOut) {
              @Throws(IOException::class)
              override fun close() {
                synchronized(this@Cache) {
                  if (done) return
                  done = true
                  writeSuccessCount++
                }
                super.close()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

        final ProgressListener progressListener = new ProgressListener() {
          boolean firstUpdate = true;
    
          @Override public void update(long bytesWritten, long contentLength, boolean done) {
            if (done) {
              System.out.println("completed");
            } else {
              if (firstUpdate) {
                firstUpdate = false;
                if (contentLength == -1) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  3. docs/recipes.md

            fun run() {
              val progressListener = object : ProgressListener {
                private var firstUpdate = true
    
                override fun update(bytesWritten: Long, contentLength: Long, done: Boolean) {
                  if (done) {
                    println("completed")
                  } else {
                    if (firstUpdate) {
                      firstUpdate = false
                      if (contentLength == -1L) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

      fun run() {
        val progressListener =
          object : ProgressListener {
            private var firstUpdate = true
    
            override fun update(
              bytesWritten: Long,
              contentLength: Long,
              done: Boolean,
            ) {
              if (done) {
                println("completed")
              } else {
                if (firstUpdate) {
                  firstUpdate = false
                  if (contentLength == -1L) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

         * @param begin the timestamp when tracking began
         * @param done whether tracking was completed normally
         */
        protected void printStats(final Object keyObj, final StatsObject data, final long begin, final boolean done) {
            final StringBuilder buf = createStringBuffer(keyObj, begin);
            if (done) {
                buf.append('\t').append("done:").append(getCurrentTimeMillis() - begin);
            }
            data.entrySet()
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/LongAdder.java

     *
     * @since 1.8
     * @author Doug Lea
     */
    @GwtCompatible
    final class LongAdder extends Striped64 implements Serializable, LongAddable {
      @GwtIncompatible @J2ktIncompatible   private static final long serialVersionUID = 7249069246863182397L;
    
      /** Version of plus for use in retryUpdate */
      @Override
      final long fn(long v, long x) {
        return v + x;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

      /** Invokes {@code unit.}{@link TimeUnit#sleep(long) sleep(sleepFor)} uninterruptibly. */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public static void sleepUninterruptibly(long sleepFor, TimeUnit unit) {
        boolean interrupted = false;
        try {
          long remainingNanos = unit.toNanos(sleepFor);
          long end = System.nanoTime() + remainingNanos;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/DataIndexHelper.java

            final long execTime = systemHelper.getCurrentTimeAsLong() - startTime;
            crawlingInfoHelper.putToInfoMap(Constants.DATA_CRAWLING_EXEC_TIME, Long.toString(execTime));
            if (logger.isInfoEnabled()) {
                logger.info("[EXEC TIME] crawling time: {}ms", execTime);
            }
    
            crawlingInfoHelper.putToInfoMap(Constants.DATA_INDEX_EXEC_TIME, Long.toString(indexUpdateCallback.getExecuteTime()));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/TypeResolver.java

       * they are declared by the same {@link java.lang.reflect.GenericDeclaration} and have the same
       * name, even if their bounds differ.
       *
       * <p>While resolving a type variable from a {@code var -> type} map, we don't care whether the
       * type variable's bound has been partially resolved. As long as the type variable "identity"
       * matches.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0L;
      }
    
      static class SerializableThrowingSupplier extends ThrowingSupplier implements Serializable {
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0L;
      }
    
      static void checkMemoize(CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top