Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 192 for _wait (0.02 sec)

  1. docs/en/docs/js/termynal.js

                }
    
                else if (type == 'progress') {
                    await this.progress(line);
                    await this._wait(delay);
                }
    
                else {
                    this.container.appendChild(line);
                    await this._wait(delay);
                }
    
                line.removeAttribute(`${this.pfx}-cursor`);
            }
            this.addRestart()
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:32:57 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

            for (int t = 0; t < threadCount; t++) {
                final int threadId = t;
                executor.submit(() -> {
                    try {
                        startLatch.await(); // Wait for all threads to be ready
    
                        for (int i = 0; i < opsPerThread; i++) {
                            String share = "share" + (threadId % 3); // Use 3 different shares
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. docs/en/docs/async.md

    # Concurrency and async / await { #concurrency-and-async-await }
    
    Details about the `async def` syntax for *path operation functions* and some background about asynchronous code, concurrency, and parallelism.
    
    ## In a hurry? { #in-a-hurry }
    
    <abbr title="too long; didn't read"><strong>TL;DR:</strong></abbr>
    
    If you are using third party libraries that tell you to call them with `await`, like:
    
    ```Python
    results = await some_library()
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 24K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                });
    
                longRunningThread.start();
                startLatch.await();
    
                // Check active requests
                assertEquals(1, cbWithTracking.getActiveRequests(), "Should have 1 active request");
    
                // Complete the operation
                holdLatch.countDown();
                completeLatch.await();
                longRunningThread.join();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                            startLatch.await();
                            response.received();
                            endLatch.countDown();
                        } catch (InterruptedException e) {
                            // Ignore
                        }
                    }).start();
                }
    
                startLatch.countDown();
                assertTrue(endLatch.await(1, TimeUnit.SECONDS));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        @Override
        public @Nullable Void call() throws InterruptedException {
          running = true;
          startLatch.countDown();
          stopLatch.await();
          running = false;
          return null;
        }
    
        void waitForStart() throws InterruptedException {
          startLatch.await();
        }
    
        void stop() {
          stopLatch.countDown();
        }
    
        boolean isRunning() {
          return running;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/PreauthIntegrityTest.java

                        doneLatch.countDown();
                    }
                });
            }
    
            // Start all threads at once
            startLatch.countDown();
    
            // Wait for completion
            assertTrue(doneLatch.await(5, TimeUnit.SECONDS), "Threads did not complete in time");
            executor.shutdown();
    
            // Verify hash is not null
            byte[] hash = transport.getPreauthIntegrityHash();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

                        endLatch.countDown();
                    }
                });
            }
    
            // Start all threads
            startLatch.countDown();
    
            // Wait for completion
            assertTrue(endLatch.await(30, TimeUnit.SECONDS), "All threads should complete");
            executor.shutdown();
    
            // Then - All operations should succeed
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

                    }
                }).start();
            }
    
            // Start all threads simultaneously
            startLatch.countDown();
    
            // Wait for completion
            assertTrue(completeLatch.await(5, TimeUnit.SECONDS));
    
            // Authenticator should be closed
            assertTrue(auth.isClosed());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/events.md

    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    In recent versions of Python, there's also an **async context manager**. You would use it with `async with`:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top