Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 446 for Wait (0.05 sec)

  1. tests/prepared_stmt_test.go

    	for i := 0; i < 100; i++ {
    		wg.Add(1)
    		go func() {
    			user := User{Name: "jinzhu"}
    			tx.Create(&user)
    
    			var result User
    			tx.First(&result)
    			wg.Done()
    		}()
    	}
    	wg.Wait()
    
    	conn, ok := tx.ConnPool.(*gorm.PreparedStmtDB)
    	AssertEqual(t, ok, true)
    	AssertEqual(t, len(conn.Stmts), 2)
    	for _, stmt := range conn.Stmts {
    		if stmt == nil {
    			t.Fatalf("stmt cannot bee nil")
    		}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:02:05 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        // We need to wait for the runner to exit.  It used to be that the runner would get stuck in the
        // busy loop when interrupt threw.
        runner.join(SECONDS.toMillis(10));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/Dispatcher.kt

    import okhttp3.ExperimentalOkHttpApi
    
    /** Handler for mock server requests. */
    @ExperimentalOkHttpApi
    abstract class Dispatcher {
      /**
       * Returns a response to satisfy `request`. This method may block (for instance, to wait on
       * a CountdownLatch).
       */
      @Throws(InterruptedException::class)
      abstract fun dispatch(request: RecordedRequest): MockResponse
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. apache-maven/src/assembly/maven/bin/mvnenc.cmd

    @REM
    @REM   JAVA_HOME           (Optional) Points to a Java installation.
    @REM   MAVEN_BATCH_ECHO    (Optional) Set to 'on' to enable the echoing of the batch commands.
    @REM   MAVEN_BATCH_PAUSE   (Optional) set to 'on' to wait for a key stroke before ending.
    @REM   MAVEN_OPTS          (Optional) Java runtime options used when Maven is executed.
    @REM   MAVEN_SKIP_RC       (Optional) Flag to disable loading of mavenrc files.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 18 11:01:21 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. bin/update_proxy.sh

    set -e
    # Check unset variables
    set -u
    # Print commands
    set -x
    
    SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
    ROOTDIR=$(dirname "${SCRIPTPATH}")
    cd "${ROOTDIR}"
    
    # Wait for the proxy to become available
    ISTIO_ENVOY_VERSION=${ISTIO_ENVOY_VERSION:-$1}
    ISTIO_ENVOY_LINUX_VERSION=${ISTIO_ENVOY_LINUX_VERSION:-${ISTIO_ENVOY_VERSION}}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Aug 28 07:59:44 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. cmd/format-erasure.go

    			if formats[index] == nil {
    				return errDiskNotFound
    			}
    			return saveFormatErasure(storageDisks[index], formats[index], "")
    		}, index)
    	}
    
    	// Wait for the routines to finish.
    	return reduceWriteQuorumErrs(ctx, g.Wait(), nil, len(storageDisks))
    }
    
    // relinquishes the underlying connection for all storage disks.
    func closeStorageDisks(storageDisks ...StorageAPI) {
    	var wg sync.WaitGroup
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  7. internal/logger/target/http/http.go

    				// there is something in the log queue
    				// process it first, even if we tickered
    				// first, or we have not received any events
    				// yet, still wait on it.
    				continue
    			}
    
    			// If we are doing batching, we should wait
    			// at least for a second, before sending.
    			// Even if there is nothing in the queue.
    			if h.batchSize > 1 && time.Since(lastBatchProcess) < time.Second {
    				continue
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/interval/impl/HostIntervalController.java

                        if (delayTime <= 0) {
                            lastTime.set(currentTime);
                            break;
                        }
                        lastTime.wait(delayTime);
                    }
                }
            } catch (final InterruptedException e) {
                throw new InterruptedRuntimeException(e);
            } catch (final Exception e) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. cmd/bitrot-streaming.go

    		b.closeWithErr(err)
    	}
    	return n, err
    }
    
    func (b *streamingBitrotWriter) Close() error {
    	// Close the underlying writer.
    	// This will also flush the ring buffer if used.
    	err := b.iow.Close()
    
    	// Wait for all data to be written before returning else it causes race conditions.
    	// Race condition is because of io.PipeWriter implementation. i.e consider the following
    	// sequent of operations:
    	// 1) pipe.Write()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 12:20:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. docs/throttle/README.md

    MinIO server allows to throttle incoming requests:
    
    - limit the number of active requests allowed across the cluster
    - limit the wait duration for each request in the queue
    
    These values are enabled using server's configuration or environment variables.
    
    ## Examples
    
    ### Configuring connection limit
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 16 08:43:49 UTC 2024
    - 1.5K bytes
    - Viewed (1)
Back to top