Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 296 for sleeps (0.34 seconds)

  1. mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt

      }
    
      fun shutdownOutput() {
        javaNetSocket.shutdownOutput()
      }
    
      /** Sleeps [nanos], throwing if the socket is closed before that period has elapsed. */
      fun sleepWhileOpen(nanos: Long) {
        var ms = nanos / 1_000_000L
        val ns = nanos - (ms * 1_000_000L)
    
        while (ms > 100) {
          Thread.sleep(100)
          if (javaNetSocket.isClosed) throw InterruptedIOException("socket closed")
          ms -= 100L
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/internal/ThrottledSink.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     *
     */
    package mockwebserver3.internal
    
    import okio.Buffer
    import okio.Sink
    
    /**
     * A sink that sleeps [periodDelayNanos] every [bytesPerPeriod] bytes. Unlike [okio.Throttler],
     * this permits any interval to be used.
     */
    internal class ThrottledSink(
      private val socket: MockWebServerSocket,
      private val delegate: Sink,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jul 29 12:43:16 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  3. ci/official/utilities/setup_docker.sh

    if [[ "$TFCI_DOCKER_PULL_ENABLE" == 1 ]]; then
      # Simple retry logic for docker-pull errors. Sleeps if a pull fails.
      # Pulling an already-pulled container image will finish instantly, so
      # repeating the command costs nothing.
      docker pull "$TFCI_DOCKER_IMAGE" || sleep 15
      docker pull "$TFCI_DOCKER_IMAGE" || sleep 30
      docker pull "$TFCI_DOCKER_IMAGE" || sleep 60
      docker pull "$TFCI_DOCKER_IMAGE"
    fi 
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Nov 20 17:33:55 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/security/first-steps.md

    # Security - First Steps { #security-first-steps }
    
    Let's imagine that you have your **backend** API in some domain.
    
    And you have a **frontend** in another domain or in a different path of the same domain (or in a mobile application).
    
    And you want to have a way for the frontend to authenticate with the backend, using a **username** and **password**.
    
    We can use **OAuth2** to build that with **FastAPI**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

      private SleepingRunnable sleeper;
      private Future<Boolean> delayedFuture;
    
      private final TearDownStack tearDownStack = new TearDownStack();
    
      @Override
      protected void setUp() {
        ExecutorService executor = newSingleThreadExecutor();
        tearDownStack.addTearDown(executor::shutdownNow);
        sleeper = new SleepingRunnable(1000);
        delayedFuture = executor.submit(sleeper, true);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  6. docs/es/docs/tutorial/security/first-steps.md

    # Seguridad - Primeros pasos { #security-first-steps }
    
    Imaginemos que tienes tu API de **backend** en algún dominio.
    
    Y tienes un **frontend** en otro dominio o en un path diferente del mismo dominio (o en una aplicación móvil).
    
    Y quieres tener una forma para que el frontend se autentique con el backend, usando un **username** y **password**.
    
    Podemos usar **OAuth2** para construir eso con **FastAPI**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  7. docs/pt/docs/tutorial/security/first-steps.md

    # Segurança - Primeiros Passos { #security-first-steps }
    
    Vamos imaginar que você tem a sua API de **backend** em algum domínio.
    
    E você tem um **frontend** em outro domínio ou em um path diferente no mesmo domínio (ou em uma aplicação mobile).
    
    E você quer uma maneira de o frontend autenticar com o backend, usando um **username** e **password**.
    
    Podemos usar **OAuth2** para construir isso com o **FastAPI**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

      private SleepingRunnable sleeper;
      private Future<Boolean> delayedFuture;
    
      private final TearDownStack tearDownStack = new TearDownStack();
    
      @Override
      protected void setUp() {
        ExecutorService executor = newSingleThreadExecutor();
        tearDownStack.addTearDown(executor::shutdownNow);
        sleeper = new SleepingRunnable(1000);
        delayedFuture = executor.submit(sleeper, true);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  9. docs/fr/docs/tutorial/security/first-steps.md

    # Sécurité - Premiers pas { #security-first-steps }
    
    Imaginons que vous ayez votre API de **backend** sur un certain domaine.
    
    Et vous avez un **frontend** sur un autre domaine ou dans un chemin différent du même domaine (ou dans une application mobile).
    
    Et vous voulez que le **frontend** puisse s'authentifier auprès du **backend**, en utilisant un **username** et un **password**.
    
    Nous pouvons utiliser **OAuth2** pour construire cela avec **FastAPI**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 9.3K bytes
    - Click Count (0)
  10. docs/tr/docs/tutorial/security/first-steps.md

    # Güvenlik - İlk Adımlar { #security-first-steps }
    
    **backend** API’nizin bir domain’de olduğunu düşünelim.
    
    Ve başka bir domain’de ya da aynı domain’in farklı bir path’inde (veya bir mobil uygulamada) bir **frontend**’iniz var.
    
    Ve frontend’in, **username** ve **password** kullanarak backend ile kimlik doğrulaması yapabilmesini istiyorsunuz.
    
    Bunu **FastAPI** ile **OAuth2** kullanarak oluşturabiliriz.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 9.2K bytes
    - Click Count (0)
Back to Top